~/talk

Can I really type THAT in TypeScript!?

Talkat revo.js 2019 · 2019-10-03..10-04· [typescript]
slides:none on file

Shows how to turn a runtime schema object into a precise TypeScript interface by building a generic define<T>(obj: T): T identity helper, extracting constructor return types with conditional types, mapping over properties to produce exact field types and using Pick/Omit/Partial/Required to mark some keys optional. Demonstrates examples (person schema -> Person interface, array-of-string aliases) and confirms the approach produces the expected types while noting small edge cases to handle.

AI-written summary · about

  1. 0:00Introduction
  2. 3:06Solution
  3. 9:32Conditional Types
  4. 16:09All Properties
  5. 21:42Optional
  6. 26:17Key of T
~/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.