static createMinimum()

Returns the `Minimum` instance of the given minimum value

Range.createMinimum()

The static createMinimum() method returns the Minimum instance of the given minimum value.

range.class.ts
public static createMinimum<Value extends number>(
  value: Value
): Minimum<Value> {
  return Minimum.create(value);
}

Generic type variables

Valueextendsnumber

​A 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.

Parameters

value:Value

The minimum range of a generic type variable Value to set with a new instance of Minimum.

Return type

The return type is the Minimum object that takes generic type variable Value.

Returns

The return value is the Minimum instance with the primitive value from the given value.

Example usage

// Example usage.
import { Range } from '@angular-package/range';

// Returns Minimum {4} of Minimum<4>.
Range.createMinimum(4);

Last updated