Type alias NoUndefined<T>

NoUndefined<T>: T extends undefined
    ? never
    : T

Type Parameters

  • T

Description

Constructs a type by excluding undefined from T.

Example

NoUndefined<string | undefined>
=> string

Generated using TypeDoc