# Generic type variables

### `Less<`<mark style="color:green;background-color:green;">`Value`</mark>`>`

#### <mark style="color:green;">`Value`</mark>`extends`[<mark style="color:green;">`number`</mark>](https://www.typescriptlang.org/docs/handbook/basic-types.html#number)

​A generic type variable constrained by the [`number`](https://www.typescriptlang.org/docs/handbook/basic-types.html#number), by default of the value **captured** from the supplied [`value`](https://range.angular-package.dev/draft/greater/constructor#value-value) indicates the [primitive value](https://range.angular-package.dev/draft/less/methods/valueof) type of a new [`Less`](https://range.angular-package.dev/draft/less) instance.

{% code title="less.class.ts" %}

```typescript
class Less<
  Value extends number // <--- Declare generic type variable Value.
> extends Number{
  constructor(
    value: Value // <--- Capture generic type variable Value.
  ) {
    super(value);
  }
}
```

{% endcode %}
