Into the Unknown
summary
A TypeScript library for freeze and thaw gets built and it actually works: freezing adds a { frozen: true } intersection type and thaw removes it, restoring the original type. The talk shows replacing any with unknown over any, using assertion guard functions that throw (returning never) to narrow types, generics + extends to constrain inputs, and conditional types with infer to extract the original T so thaw returns the unwrapped object.
AI-written summary · about
chapters (4)
related talks
40mInto The Unknown
27mA Wild TypeScript Safari
01h 01mAdvanced TypeScript Type Utilities
22mThink you know TypeScript? Think again.
19mYou don't know TS: often unknown parts of TypeScript
54mAdvanced TypeScript
30mSwipe Left, Uncaught TypeError Learning to Love Type Systems
27mDecoding Perplexing TypeScript
