A type that excludes null and undefined from type T. *
null
undefined
T
Type Str = ExcludeNullable<string | null> // stringType Str2 = ExcludeNullable<string | null | undefined> // stringType Str3 = ExcludeNullable<string | undefined> // string* Copy
Type Str = ExcludeNullable<string | null> // stringType Str2 = ExcludeNullable<string | null | undefined> // stringType Str3 = ExcludeNullable<string | undefined> // string*
A type that excludes
null
andundefined
from typeT
. *