static createMinimum()
Returns the `Minimum` instance of the given minimum value
Last updated
Returns the `Minimum` instance of the given minimum value
Range.createMinimum()The static createMinimum() method returns the Minimum instance of the given minimum value.
public static createMinimum<Value extends number>(
value: Value
): Minimum<Value> {
return Minimum.create(value);
}ValueextendsnumberA generic type variable constrained by the number, by default of the value captured from the supplied value indicates the primitive value type of a new Minimum instance.
value:ValueThe minimum range of a generic type variable Value to set with a new instance of Minimum.
Minimum<Value>The return type is the Minimum object that takes generic type variable Value.
The return value is the Minimum instance with the primitive value from the given value.
Last updated
// Example usage.
import { Range } from '@angular-package/range';
// Returns Minimum {4} of Minimum<4>.
Range.createMinimum(4);