# MinMax

## `MinMax<Min, Max>`

A generic type `MinMax` that takes generic type variables [`Min`](#min-extends-number) and [`Max`](#max-max) represents the range between minimum and maximum.

{% code title="minmax.interface.ts" %}

```typescript
interface MinMax<Min extends number, Max extends number> {
  min: Min;
  max: Max;
}
```

{% endcode %}

### Generic type variables

#### <mark style="color:green;">`Min`</mark>`extends`<mark style="color:green;">`number`</mark>

A generic type variable `Min` constrained by the [`number`](https://www.typescriptlang.org/docs/handbook/basic-types.html#number) type indicates the **minimum** number.

#### <mark style="color:green;">`Max`</mark>`extends`<mark style="color:green;">`number`</mark>

A generic type variable `Max` constrained by the [`number`](https://www.typescriptlang.org/docs/handbook/basic-types.html#number) type indicates the **maximum** number.

### Properties

#### `min:`<mark style="color:green;">`Min`</mark>

The **minimum** value of a generic type variable [`Min`](#minextendsnumber) constrained by a [`number`](https://www.typescriptlang.org/docs/handbook/basic-types.html#number) type.

#### `max:`<mark style="color:green;">`Max`</mark>

The **maximum** value of a generic type variable [`Max`](#maxextendsnumber) constrained by a [`number`](https://www.typescriptlang.org/docs/handbook/basic-types.html#number) type.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://type.angular-package.dev/interface/minmax.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
