~/talk

Why Does the "true" Type Exist in TypeScript?

TalkinRussianat JS Fest 2019 Autumn · 2019-11-08..11-09· [typescript]
links:none on file
slides:none on file

The talk explains the role of literal types in TypeScript—including the specific literal 'true'—and how their introduction enabled features like mapped types, indexer types and keyof. It covers why literal types were added, the language concepts they bring, why they are challenging to implement in the TypeScript analyzer, and how these types relate back to real-world JavaScript.

AI-written summary · about

  1. 0:00Introduction
  2. 2:05Compiler experience
  3. 3:09true basics
  4. 5:18Using true examples
  5. 8:08TypeScript 2.0 changes
  6. 9:31Type guard flow
  7. 12:49Discriminant unions
  8. 15:22true in flow checks
  9. 19:00Why true type added
  10. 20:28Boolean literal challenges
  11. 24:23Declared vs inferred types
  12. 26:39Function return types
  13. 30:41Extensible literal types
  14. 33:15Type widening
  15. 35:07Literal types complexity
  16. 37:16Explicit type tips
  17. 39:47TypeScript 2.0 compatibility
  18. 40:33Q&A
~/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.