Skip to main content

TupleN

TupleN: {
"fromArray": TupleN<T, N>;
"hasLength": tuple is TupleN<T, N>;
"map": [...{ [i in string | number | symbol]: B }[]];
};

Type declaration

fromArray()

Type parameters

T

N extends number

Parameters

n: N

arr: T[]

Returns

TupleN\<T, N>

hasLength()

Type parameters

T

N extends number

Parameters

n: N

tuple: T[]

Returns

tuple is TupleN<T, N>

map()

Type parameters

T extends Tuple\<any>

B

Parameters

tuple: T

f

Returns

[...{ [i in string | number | symbol]: B }[]]

Source

lib/util/types.ts:28