NumberBetween
NumberBetween<Min, Max, Type>
NumberBetween<Min, Max, Type>
A number
type or an instance of Number
between a specified range takes generic type variable Min
and Max
constrained by number
type as range, and takes generic type variable Type
constrained by generic type AnyNumber
as the type.
number-between.type.ts
Generic type variables
Min
extends
number
Min
extends
number
A generic type variable Min
constrained by the number
type indicates the minimum range of the generic type variable Type
.
Max
extends
number
Max
extends
number
A generic type variable Min
constrained by the number
type indicates the maximum range of the generic type variable Type
.
Type
extends
AnyNumber
=
number
Type
extends
AnyNumber
=
number
A generic type variable Type
constrained by generic type AnyNumber
indicates number
type.
Last updated