Type alias ExcludeNull<T>

ExcludeNull<T>: Exclude<T, null>

A type that excludes null from type T.

Type Parameters

  • T

Example

Type Str = ExcludeNullable<string | null> // Result:  string