Skip to content

Glossary: TypeScript Basics

outside data (checking where it enters)

Also written: validate outside data

Data from JSON files or other services arrives while the program runs, so types can't vouch for it. Read it as `unknown` and narrow it into a real type where it enters, as `parseOrder` does.

Where the book teaches it

Related terms

unknownJSON.parsenarrowing