Skip to content

Glossary: TypeScript Beyond the Basics

never

A type with no values. In a union it disappears, and `Result<never>` can only be the error kind, so it fits any `Result<T>`.

Where the book teaches it

Related terms

assertNever