🌪️ filter 🚧 temporary
Filter T to ensure it is an array or tuple.
T
This is a temporary type before ArrayType is adjusted to loose check in the next version.
ArrayType
type R = LooseArrayType<number[]> // number[]type R = LooseArrayType<[1]> // [1]type R = LooseArrayType<number[] | 1> // number[]type R = LooseArrayType<number[] & 1> // number[]stype R = LooseArrayType<string> // never Copy
type R = LooseArrayType<number[]> // number[]type R = LooseArrayType<[1]> // [1]type R = LooseArrayType<number[] | 1> // number[]type R = LooseArrayType<number[] & 1> // number[]stype R = LooseArrayType<string> // never
🌪️ filter 🚧 temporary
Filter
T
to ensure it is an array or tuple.This is a temporary type before
ArrayType
is adjusted to loose check in the next version.