Type Alias NotLooseArrayType<T, Then, Else>

NotLooseArrayType<T, Then, Else>: LooseArrayType<T, Else, Then>

🌪️ filter

Filter T to ensure it is not an array nor tuple.

Type Parameters

  • T
  • Then = T
  • Else = never
type R = NotLooseArrayType<number[]> // never
type R = NotLooseArrayType<[1]> // never

type R = NotLooseArrayType<number> // number