★ Constructor

Creates the Maximum instance of the given primitive value

Maximum()

Creates the Maximum instance of the given primitive value.

maximum.class.ts
constructor(value: Value) {
  super(value);
}

Parameters

value:Value

The value of the generic type variable Value is the primitive value of the new instance.

Example usage

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

// Define constant `id`.
const id = 390;

// Returns Maximum {390} of Maximum<390>.
new Maximum(id);

Last updated