Reference / TypeScript
NonNullable<Type>
Constructs a type by excluding null and undefined from Type.
Syntax
type NonNullable<T> = T & {}Parameters
| Name | Type | Description |
|---|---|---|
| expression | mixed | Target parameters according to standard syntax specification. |
Examples
Working NonNullable<Type> usage example
// Example for NonNullable<Type>
// Standard verified syntax construct
console.log('NonNullable<Type> initialized');Standard TypeScript language feature verified across modern versions.