Skip to content

Glossary: TypeScript Basics

never

Also written: `never`

The type with no values. A function that always throws, like `fail`, returns `never`, and a `never` check in a `switch` catches missing cases.

Where the book teaches it

Related terms

voidswitch