~/talk

Typescript Deep Dive

Talkat Connect.Tech 2022 · 2022-11-07..11-09· [typescript]
slides:none on file

Deep dive through TypeScript’s advanced type toolkit shows how unions, keyof and indexed access, intersections, generics, mapped types, conditional types and infer as pattern matching combine to build real helpers like Nullable, Partial, Readonly, Pick/Exclude, RequireAtLeastOne and a GivenKeysOptional implementation. Examples include extracting tuple/return types, the Next.js getStaticProps type (about ten lines) and a React “props without ref” pattern; these composed types produce stricter, composable safety and the talk advocates map types as for-loop for types and using unknown for safer catch handling.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 3:28Understanding Union types
  3. 7:23Lookup types and indexed access
  4. 11:00Intersection types and generics
  5. 14:52Map types and transformations
  6. 22:34Advanced type utilities
  7. 27:14Conditional types and never
  8. 30:44Infer and pattern matching
  9. 37:47Complex type examples
  10. 40:19Q&A and advanced topics
~/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.