~/talk

COOL WAYS TO TYPE

Talkat JSCamp Romania 2017 · on Wednesday, 2017-06-07· [javascript, typescript]
links:none on file
slides:none on file

Stripe.js uses the Flow static type checker to cut runtime errors and bundle bloat by applying three concrete techniques: exhaustive mixed refinements that force validation of unknown inputs, composable extractor functions plus a type-level map to validate many options without adding code size, and controlled use of trusted any casts to cross postMessage boundaries for iframes. Flow-typed wrappers also document DOM quirks like Firefox getComputedStyle returning null. Outcome: fewer runtime type errors, safer deploys for a library handling thousands of transactions per minute and 1–2 daily releases.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:54Why Flow at Stripe
  3. 3:41Exhaustive type checking
  4. 8:37Type extractors for options
  5. 13:34Typecasting across interfaces
  6. 20:12Handling cross-frame messages
  7. 22:12Safety guards for DOM APIs
  8. 26:06Confidence in deployments
  9. 27:10Q&A session
~/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.