TupleWithMaxLength
Type Aliases
Section titled “Type Aliases”TupleWithMaxLength
Section titled “TupleWithMaxLength”TupleWithMaxLength<
T,MaxLength> = readonlyT[] &object
Defined in: packages/isaacscript-common/src/types/TupleWithMaxLength.ts:8
Helper type that validates that a tuple does not have a length greater than N.
For example, TupleWithMaxLength<string, 3> will allow string tuples of size 0, 1, 2, or 3.
Type Declaration
Section titled “Type Declaration”length
Section titled “length”length:
IRange<0,MaxLength>
Type Parameters
Section titled “Type Parameters”T
MaxLength
Section titled “MaxLength”MaxLength extends number
