API reference › @evolu/common › Assert › assertNonNullable
const assertNonNullable: <T>(
value: T,
message?: string,
) => asserts value is NonNullable<T>;
Defined in: packages/common/src/Assert.ts:318
Asserts that a value is non-nullable.
Following TypeScript's NonNullable, non-nullable here means neither null nor undefined. Use this when a value is logically guaranteed to be non-nullable but TypeScript cannot prove it.