Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

UNSAFE_invariant

function UNSAFE_invariant(value: boolean, message?: string): asserts value;
function UNSAFE_invariant<T>(value: T | null | undefined, message?: string): asserts value is T;
§
UNSAFE_invariant(value: boolean, message?: string): asserts value
[src]

§Parameters

§
value: boolean
[src]
§
message?: string optional
[src]

§Return Type

§
asserts value
[src]
§
UNSAFE_invariant<T>(value: T | null | undefined, message?: string): asserts value is T
[src]

§Type Parameters

§Parameters

§
value: T | null | undefined
[src]
§
message?: string optional
[src]

§Return Type

§
asserts value is T
[src]