InvariantError

class InvariantError extends Error

Thrown when an invariant is violated. Distinct type so tests can assert on it.

packages/shared/src/invariant.ts:2

Members

constructor

constructor(message?: string) → InvariantError
constructor(message?: string, options?: ErrorOptions) → InvariantError
messagestring
Undocumented
messagestring
Undocumented
optionsErrorOptions
Undocumented

cause

cause?: unknown

message

message: string

namereadonly

name: 'InvariantError'

stack

stack?: string

Generated from the source of @inertialref/shared and its comments. Nothing on this page is written by hand.