Skip to content

Glossary: TypeScript Beyond the Basics

unknown

A type for a value you know nothing about. Unlike `any`, you must narrow it before using it, so it's the honest type for parsed JSON.

Where the book teaches it

Related terms

anyUser-defined type guard