Type Alias IfAnyOrUnknown<T, Then, Else>

IfAnyOrUnknown<T, Then, Else>: IsAnyOrUnknown<T> extends true
    ? Then
    : Else

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

Type Parameters

  • T
  • Then = true
  • Else = false