~/talk

TypeScript: Turning Bad Old JS into Typed Code

TalkinItalianat Coderful 2024 · on Friday, 2024-06-28· [typescript]
slides:none on file

Practical techniques for using TypeScript to convert untyped JavaScript into well-typed code, covering advanced features such as types, functions, literal types, unions and intersections. The talk presents strategies to avoid casts and any, and to adopt TypeScript idioms that make applications more type-safe and maintainable.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08TypeScript vs JavaScript
  3. 2:11Literal types
  4. 4:41Enums vs literals
  5. 6:05Deriving types
  6. 7:29Template string types
  7. 9:17Union types
  8. 11:44Type guards
  9. 17:01Type guards in arrays
  10. 18:46Assertion functions
  11. 20:31Branded types
  12. 24:01Schema validation with Zod
  13. 27:58Safe parsing with Zod
  14. 28:41Why TypeScript matters
  15. 30:49Q&A
~/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.