Skip to content

invariant

invariant(condition, error): asserts condition

Parameters

condition: any

error: Error = ...

Returns

asserts condition

Defined in

packages/utils/src/invariant.ts:3