Skip to content

Glossary: TypeScript Beyond the Basics

ApiError

The client's discriminated union of four failures: `http`, `network`, `timeout` and `invalid`. Callers handle each kind with a `switch` on `kind`.

Where the book teaches it

Related terms

Result typeDiscriminated unionassertNever