~/talk

Rock-Solid Components with TypeScript and GraphQL

Talkat NDC Porto 2019 · 2019-02-26..03-01· [typescript, graphql]
speakerdeck:mwarger
slides:none on file

Claims that pairing TypeScript with GraphQL makes components dependable by moving type guarantees to the editor and compile step, using Apollo/Amplify or graphql-codegen to generate TypeScript types from GraphQL schema so nested fields and nullability are known, demonstrating generics with a generic sort header enforced by keyof T, showing refactor-safe renames across files, using optional-chaining utilities and fragments, and arguing this workflow prevents the common runtime "undefined is not an object" errors (citing top-10 JS errors) so broken code fails to compile instead of shipping.

AI-written summary · about

  1. 0:00Start
  2. 1:27The path to the front-end...
  3. 14:15Type Inference
  4. 15:38In-line documentation
  5. 18:49Generics
  6. 30:36What does it look like?
~/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.