> For the complete documentation index, see [llms.txt](https://range.angular-package.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://range.angular-package.dev/draft/range/methods/static-createminimum.md).

# static createMinimum()

## `Range.createMinimum()`

The static `createMinimum()` method returns the [`Minimum`](/draft/minimum/overview.md) instance of the given **minimum** [`value`](#value-value).

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

```typescript
public static createMinimum<Value extends number>(
  value: Value
): Minimum<Value> {
  return Minimum.create(value);
}
```

{% endcode %}

### Generic type variables

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

​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`](#value-value) indicates the [primitive value](https://range.angular-package.dev/draft/range/methods/pages/EVBRc6yvosmzogLoQiK2#minimum.prototype.valueof) type of a new [`Minimum`](/draft/minimum/overview.md) instance.

### Parameters

#### `value:`[<mark style="color:green;">`Value`</mark>](#valueextendsnumber)

The **minimum** range of a generic type variable [`Value`](#valueextendsnumber) to set with a new instance of [`Minimum`](/draft/minimum/overview.md).

### Return type

#### [<mark style="color:green;">`Minimum`</mark>](/draft/minimum/overview.md)`<`[<mark style="color:green;">`Value`</mark>](#valueextendsnumber)`>`

The **return type** is the [`Minimum`](/draft/minimum/overview.md) object that takes generic type variable [`Value`](#valueextendsnumber).

### Returns

The **return value** is the [`Minimum`](/draft/minimum/overview.md) instance with the [primitive value](https://range.angular-package.dev/draft/range/methods/pages/EVBRc6yvosmzogLoQiK2#minimum.prototype.valueof) from the given [`value`](#value-value).

## Example usage

```typescript
// Example usage.
import { Range } from '@angular-package/range';

// Returns Minimum {4} of Minimum<4>.
Range.createMinimum(4);
```
