Type Alias LooseTuple<A, Criteria, Then, Else>

LooseTuple<A, Criteria, Then, Else>: A["length"] extends 0
    ? Else
    : A[0] extends Criteria
        ? Then
        : LooseTuple<Tail<A>, Criteria, Then, Else>

Type Parameters

  • A extends readonly unknown[]
  • Criteria
  • Then
  • Else