Type Alias IfAbsent<T, Then, Else>

IfAbsent<T, Then, Else>: IsAbsent<T> extends true
    ? Then
    : Else

If T is any, unknown, undefined, null, never, void, then return Then, else return Else

Type Parameters

  • T
  • Then = true
  • Else = false