Skip to main content

assertDefined

For the complete documentation index, see llms.txt

@midnight-ntwrk/compact-runtime v0.19.0


@midnight-ntwrk/compact-runtime / assertDefined

Function: assertDefined()

function assertDefined<T>(t, name): asserts t is NonNullable<T>;

Internal

Compiler internal for asserting an object is non-nullable.

Type Parameters​

T​

T

Parameters​

t​

T | undefined

name​

string

Returns​

asserts t is NonNullable<T>