~/talk

Reliable I/O with the TypeScript Compiler API

Talkat Future Frontend 2024 · 2024-06-13..06-14· [typescript, developer-experience]
slides:none on file

Generates fully typed HTTP clients from TypeScript Compiler API plus OpenAPI specs, claims to eliminate manual fetch functions and surface backend changes as compile errors, and runs generation in CI to publish up‑to‑date packages. Shows codegen of typed functions, React‑Query/SWR hooks and optional runtime validators (examples use React Query and Zod), demonstrates generating pages per endpoint and printing AST nodes to files, and reports that the generated clients integrate with server rendering and catch many bugs before runtime.

AI-written summary · about

  1. 0:00Introduction
  2. 0:27TypeScript Compiler API for IO
  3. 1:30React data fetching evolution
  4. 5:24Early data fetching limits
  5. 7:53OpenAPI for API contracts
  6. 9:41Reliable IO client features
  7. 10:43Client generation methods
  8. 12:49Code gen with TypeScript API
  9. 15:17Understanding AST
  10. 17:03Generating code with factory
  11. 18:51Simplifying AST tools
  12. 19:55Printing generated code
  13. 20:15CI automation for code gen
  14. 21:18Benefits of generated clients
  15. 21:59Adding caching and validation
  16. 23:05UI pages from OpenAPI specs
  17. 23:47Conclusion
~/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.