Type Alias NonOptional<T>

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

Subtracts undefined from any union type T. This is the opposite of Optional.

Type Parameters

  • T