~/talk

You don't know TS: often unknown parts of TypeScript

Talkat jsPoland 2018 · on Friday, 2018-11-16· [typescript]
slides:none on file

Covers concrete TypeScript fixes and demos: running tsc --noEmit checks on plain .js, using strictNullChecks and the postfix non‑null operator (!) to avoid runtime nulls, wrapping state with Readonly and ReadonlyArray to catch mutations, generating nested interfaces from JSON with a VS Code snippet (Ctrl+Shift+T), enabling noImplicitAny and the TSLint typedef rule to force return types, practical type guards for unions, and using the never type for exhaustive switch checks used in Redux/React/Angular examples.

AI-written summary · about

  1. 0:00Intro
  2. 2:33TS check
  3. 3:38JS Doc format
  4. 4:42Browser environment
  5. 4:53Type definition
  6. 5:27Generic elements
  7. 6:31Player element
  8. 6:52Null pointer exception
  9. 7:33Postfix operator
  10. 8:11Imutable structures
  11. 10:16Big JSON responses
  12. 11:17Biased JSON
  13. 14:47Type Guards
  14. 16:33Never Type
~/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.