MinMax
Last updated
MinMax<Min, Max>A generic type MinMax that takes generic type variables Min and Max represents the range between minimum and maximum.
interface MinMax<Min extends number, Max extends number> {
min: Min;
max: Max;
}MinextendsnumberA generic type variable Min constrained by the number type indicates the minimum number.
MaxextendsnumberA generic type variable Max constrained by the number type indicates the maximum number.
min:MinThe minimum value of a generic type variable Min constrained by a number type.
max:MaxThe maximum value of a generic type variable Max constrained by a number type.
Last updated