We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
A Deep Dive Into Advanced TypeScript: A Live-Coding Expedition by Christian Wörz
Join Christian Wörz on a live-coding expedition into advanced TypeScript features, covering type guards, template literals, map types, and more.
- TypeScript’s generic function can act as a type guard, allowing you to narrow down types.
-
The
never
type is useful for stopping a function from running or indicating an error. - Template literals can be used to create powerful types.
- Map types can be used to create types that can be used to validate input.
-
The
infer
keyword can be used to automatically infer types. - TypeScript’s type inference is powerful and can be used to create complex types.
-
The
as
keyword can be used to tell TypeScript to ignore type checks. -
The
never
type can be used to indicate that a type is not allowed. - TypeScript’s type system can be used to create complex types that can be used to validate input.
-
The
satisfies
keyword can be used to check if a type satisfies a certain condition. -
The
infer
keyword can be used to automatically infer the type of a variable. - TypeScript’s type inference is powerful and can be used to create complex types.
- Template literals can be used to create powerful types.
-
The
as
keyword can be used to tell TypeScript to ignore type checks.