Case File: Trust Nothing
Types are erased before the code runs, so they cannot protect you from data that arrives from outside. Write a type guard that checks an unknown value and tells the compiler what it found, and a parser that returns a Parcel or null and never throws. Real TypeScript in strict mode, generated for you alone.
Case File: Trust Nothing
Types are erased before the code runs, so they cannot protect you from data that arrives from outside. Write a type guard that checks an unknown value and tells the compiler what it found, and a parser that returns a Parcel or null and never throws. Real TypeScript in strict mode, generated for you alone.
In this lesson:
- typescript
- unknown
- type-guards
- validation
- json
- runtime-checks
- case-file
This lesson is part of a paid plan
Upgrade to Pro to unlock this course, its labs and its exam.
View Pricing Plans