~/talk

The TypeScript Converging Point

Talkat JS Poland 5th Edition · on Wednesday, 2022-01-26· [typescript, javascript]
slides:none on file

Builds TypeScript types that turn commander.js option strings into a properly typed opts object by using generics, literal string types, conditional types and string template literal types with infer R to strip dashes, map flags to boolean and required args to string. Demo creates a pizza CLI and shows autocomplete for episode, keep, ratio, pineapple, sausage (string). Works for the fluent builder pattern but fails for runtime mutations of the command object — TypeScript cannot yet express that.

AI-written summary · about

  1. 0:00Introduction to Commander JS
  2. 3:02TypeScript type challenges
  3. 7:20Building CLI types
  4. 10:58Handling command flags
  5. 14:26Advanced argument patterns
  6. 16:11Live demo in VS Code
  7. 17:36TypeScript limitations
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.