~/talk

Refraction of Reality: Dynamic Validation with Static Types

TalkinRussianat HolyJS 2020 Moscow · 2020-11-25..11-28· [typescript, testing]
slides:none on file

Talk explains how to reuse TypeScript and Flow static types at runtime to validate JSON, generate runtime checks and support property-based testing. It describes the concept of type-directed emit, compares it to other reflection and code-generation techniques, examines API transpiler specifics, and outlines pitfalls of this approach.

AI-written summary · about

  1. 0:00Introduction
  2. 3:41JSON validation problems
  3. 17:14Custom transformers
  4. 19:24Tarot for transformers
  5. 30:47Validator generation
  6. 34:18Custom validators
  7. 43:14Debugging limits
  8. 47:07Other code generation
  9. 50:37Q&A
  10. 1:07:54Summary
~/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.