5.0.0-rc.0

MinMax

MinMax<Min, Max>

A generic type MinMax that takes generic type variables Min and Max represents the range between minimum and maximum.

minmax.interface.ts
interface MinMax<Min extends number, Max extends number> {
  min: Min;
  max: Max;
}

Generic type variables

Minextendsnumber

A generic type variable Min constrained by the number type indicates the minimum number.

Maxextendsnumber

A generic type variable Max constrained by the number type indicates the maximum number.

Properties

min:Min

The minimum value of a generic type variable Min constrained by a number type.

max:Max

The maximum value of a generic type variable Max constrained by a number type.

Last updated