Skip to content

API reference / @node-ts/bus-core / assertUnreachable

Function: assertUnreachable() ​

ts
function assertUnreachable(unexpectedValue): never;

Defined in: packages/bus-core/src/util/assert-unreachable.ts:4

This raises transpile time errors any time the tokenizer hits this function in the code

Parameters ​

ParameterType
unexpectedValuenever

Returns ​

never

Released under the MIT License.