Skip to content

Glossary: TypeScript Basics

type guard

Also written: type guards

A check that narrows a type, such as `typeof x === "number"`.

Where the book teaches it

Related terms

narrowingtypeofinstanceofin operator