~/talk

JavaScript with Types: A deep dive into TSC & JSDoc with Vanilla JS!

Talkat UtahJS Conf 2022 · on Friday, 2022-09-23· [typescript, javascript]
name:AJ ONeal
links:none on file
slides:none on file

Shows how to add typed JavaScript using JSDoc + the TypeScript checker (TSC) with no transpilation, using commands like npx jswhat init to scaffold configs and npm run lint / npm run doc to run TSC and generate docs. Explains required /* / JSDoc blocks, @typedef/@prop vs @param, @callback workaround, primitive/tuple/map/enums, utility types like partial/required, the 17 tsconfig options, and the index.js re-export pattern so published packages expose their types.

AI-written summary · about

  1. 0:00Introduction and philosophy
  2. 1:33JS with types philosophy
  3. 2:52JavaScript type system
  4. 5:04Tooling and JS Doc
  5. 6:47Project configuration
  6. 9:33Type annotation syntax
  7. 11:20Defining structures and functions
  8. 13:14Advanced type definitions
  9. 15:59Generics and utility types
  10. 19:42Importing and exporting types
  11. 20:55Types breakdown and Q&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.