API reference › @evolu/common › Assert
Runtime assertions for invariant checking.
Functions
| Function | Description |
|---|---|
| assertNotAborted | Asserts that a Result did not fail with AbortError. |
| assertNotDisposed | Guards synchronous methods on objects that may be called after disposal. |
Variables
| Variable | Description |
|---|---|
| assert | Ensures a condition is true, throwing an error with the provided message if not. |
| assertNonEmptyArray | Asserts that an array is non-empty. |
| assertNonEmptyReadonlyArray | Asserts that a readonly array is non-empty. |
| assertType | Ensures a value conforms to a Type. |