~/talk

Why You Should Maintain Type Definitions for Your JavaScript Project

Talkat Node+JS Interactive 2019 · 2019-12-11..12-12· [typescript, open-source]
slides:none on file

Fastify ships handwritten TypeScript declarations alongside its 97.3% JavaScript code so consumers get guaranteed, up-to-date types rather than relying on DefinitelyTyped. The talk explains using advanced generics — constraints and defaults and named generic parameters — to infer request/reply types across HTTP/HTTP2, shows a test setup using the tsd-style assertion library TST to assert type errors and expectations, and flags a missing type-coverage metric while outlining docs, examples, and v3 refactor plans for 2020.

AI-written summary · about

  1. 0:00Start
  2. 6:14Generic Constraints and Generic Defaults
  3. 10:16Named Generic Parameters
  4. 13:01Documentation
  5. 14:01Frequently Asked Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.