Type alias ExcludeUndefined<T>

ExcludeUndefined<T>: Exclude<T, undefined>

A type that excludes undefined from type T. *

Type Parameters

  • T

Example

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