Generic type variables
The `Less` primitive wrapper object generic type variables
Less<Value>
Less<Value>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 Less instance.
class Less<
Value extends number // <--- Declare generic type variable Value.
> extends Number{
constructor(
value: Value // <--- Capture generic type variable Value.
) {
super(value);
}
}Last updated