Constructor

The `TypeErrors` constructor

TypeErrors()

Creates the TypeErrors instance of unique identification numbers under which the TypeError objects are stored.

type-errors.class.ts
constructor(...id: Id[]) {
  super(...id);
}

Parameters

...id:Id[]

A rest parameter of generic type variable Id indicates unique identification numbers under which the TypeError objects are stored.

Example usage

// 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');

Last updated