static createMaximum()

Returns the `Maximum` instance of the given maximum value

Range.createMaximum()

The static createMaximum() method returns the Maximum instance of the given maximum value.

range.class.ts
public static createMaximum<Value extends number>(
  value: Value
): Maximum<Value> {
  return Maximum.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 Maximum instance.

Parameters

value:Value

The maximum range of a generic type variable Value to set with a new instance of Maximum.

Return type

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

Returns

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

Example usage

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

// Returns Maximum {27} of Maximum<27>.
Range.createMaximum(27);

Last updated