Skip to content

assertUnreachable

assertUnreachable(x, hint?): never

Defined in: ootle/src/errors/index.ts:126

Standard TypeScript exhaustiveness helper. Use at the bottom of a switch over a discriminated union (or any branch the type system has narrowed to never) to assert at compile-time that every case is handled — and throw at runtime if an unhandled value sneaks past the type checker.

never

string

never