UNSAFE_invariantfunction 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§T[src]§Parameters§value: T | null | undefined[src]§message?: string optional[src]§Return Type§asserts value is T[src]