Creates a child class instance with the given primitive .
constructor(value: Value) {
super(value);
this.#greater = new Greater(value);
this.#less = new Less(value);
}
Parameters
value:Value
The value of the generic type variable is the of a new child class instance.
Example usage
// Example usage.
import { Inequality } from '@angular-package/range';
// Define the `Age` class and extend it with `Inequality`.
class Age<Value extends number> extends Inequality<Value> {}
// Initialize `Age`.
const age = new Age(27);
// Returns Age {27} of Age<27>.
age;