Skip to main content

Type Guards and Narrowing

Assertion Functions

0:00
LearnStep 1/2

Assertion Functions

Assertion Functions

Functions that throw if condition is false:

typescript

Assert Condition

typescript

Assert Non-Null

typescript