# static create()

## `Minimum.create()`

The static `create()` method creates the [`Minimum`](https://range.angular-package.dev/draft/minimum) instance with the given primitive [`value`](#value-value).

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

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

{% endcode %}

### Generic type variables

#### <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 indicates captured type of the supplied [`value`](#value-value) via the [return type](#return-type).

### Parameters

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

The minimum number of generic type variable [`Value`](#valueextendsnumber) to set with a new instance.

### Return type

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

The **return type** is the [`Minimum`](https://range.angular-package.dev/draft/minimum) [primitive wrapper object](https://developer.mozilla.org/en-US/docs/Glossary/Primitive#primitive_wrapper_objects_in_javascript) that takes the generic type variable [`Value`](#valueextendsnumber).

### Returns

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

## Example usage

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

// Returns Minimum {27} of Minimum<27>.
Minimum.create(27);
```
