LESSON 1.3
Widening is why your string turned into string. A const assertion keeps the literal, which is what makes union-of-literals modelling work.
This lesson sits in How the Type System Thinks, part of TypeScript for Application Developers. It assumes what came before it and leads directly into the next lesson in the module.
Every lesson, searchable to the second.
© 2026 BIBLION
PRIVACY · TERMS · CONTACT