Generic type variables
The `Inequality` primitive wrapper object generic type variables
Inequality<Value>
Inequality<Value>abstract class Inequality<
Value extends number // <--- Declare generic type variable Value.
> extends Number {
constructor(
value: Value // <--- Capture generic type variable Value.
) {
super(value);
this.#greater = new Greater(value);
this.#less = new Less(value);
}
}Last updated