# Constructor

## `TypeErrors()`

Creates the [`TypeErrors`](https://docs.angular-package.dev/error/typeerrors) instance of [unique identification](https://docs.angular-package.dev/error/getting-started/basic-concepts#unique-identification) numbers under which the [`TypeError`](https://docs.angular-package.dev/error/typeerror) objects are stored.

{% code title="type-errors.class.ts" %}

```typescript
constructor(...id: Id[]) {
  super(...id);
}
```

{% endcode %}

### Parameters

#### `...id:`[<mark style="color:green;">`Id`</mark>](https://docs.angular-package.dev/error/generic-type-variables#typeerrors-less-than-id-greater-than)`[]`

A [rest parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters) of generic type variable [`Id`](https://docs.angular-package.dev/error/generic-type-variables#typeerrors-less-than-id-greater-than) indicates [unique identification](https://docs.angular-package.dev/error/getting-started/basic-concepts#unique-identification) numbers under which the [`TypeError`](https://docs.angular-package.dev/error/typeerror) objects are stored.

## Example usage

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

// Returns TypeErrors {}
new TypeErrors('RE: 4332', 'RE: 4331', 'RE: 4330');

// Returns TypeErrors {}
new TypeErrors('RV: 332', 'RV: 331', 'RV: 330');
```
