API reference@evolu/common › Assert

Runtime assertions for invariant checking.

Functions

FunctionDescription
assertNotAbortedAsserts that a Result did not fail with AbortError.
assertNotDisposedGuards synchronous methods on objects that may be called after disposal.

Variables

VariableDescription
assertEnsures a condition is true, throwing an error with the provided message if not.
assertNonEmptyArrayAsserts that an array is non-empty.
assertNonEmptyReadonlyArrayAsserts that a readonly array is non-empty.
assertTypeEnsures a value conforms to a Type.