TupleWithLengthBetween
Type Aliases
Section titled “Type Aliases”TupleWithLengthBetween
Section titled “TupleWithLengthBetween”TupleWithLengthBetween<
T,MinLength,MaxLength> = readonlyT[] &object
Defined in: packages/isaacscript-common/src/types/TupleWithLengthBetween.ts:9
Helper type that validates that a tuple has a length between MinLength and MaxLength
(inclusive on both ends).
For example, TupleWithLengthBetween<string, 2, 4> will allow string tuples of size 2, 3, or 4.
Type Declaration
Section titled “Type Declaration”length
Section titled “length”length:
IRange<MinLength,MaxLength>
Type Parameters
Section titled “Type Parameters”T
MinLength
Section titled “MinLength”MinLength extends number
MaxLength
Section titled “MaxLength”MaxLength extends number
