Skip to content

Glossary: TypeScript Basics

unknown

Also written: `unknown`

A type for a value that could be anything, where TypeScript lets you do nothing with it until you narrow it. It's the safe alternative to `any` for outside data like parsed JSON.

Where the book teaches it

Related terms

anynarrowingJSON.parse