Type Alias IfAnyOrUnknownOrUndefined<T, Then, Else>

IfAnyOrUnknownOrUndefined<T, Then, Else>: IsAnyOrUnknownOrUndefined<T> extends true
    ? Then
    : Else

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

Type Parameters

  • T
  • Then = true
  • Else = false