Skip to main content

Type Alias: ToNonNullable<T>

ToNonNullable<T> = T extends null | undefined ? never : T

Defined in: src/sdk/utils/types/UtilityTypes.ts:13

Removes null and undefined from a union type.

Type Parameters

Type ParameterDescription
TThe union type from which to remove null and undefined.