Kodo
kon
kodokon.com
Courses
/
TypeScript
Progression
TypeScript · Intermediate - build real things
type vs interface: extends and intersection
Pick the right construct to model and compose your object types without duplicating code.
Literal types and discriminated unions
Model your application's states with unions the compiler checks on your behalf.
Enums and const assertions: the modern alternatives
Understand the limits of enums and derive your types from frozen constants with as const.
Generics: simple generic functions and types
Write reusable functions and types that keep full type precision on every call.
Typing real-world code: DOM, fetch, JSON
Keep reliable types at your application's boundaries, where the DOM, the network, and JSON escape the compiler.