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

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

Type Parameters

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