1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | class NoExplicitTypeError extends Error {
|
4 | constructor(typeName, propertyKey, parameterIndex) {
|
5 | let errorMessage = `You need to provide explicit type for ${typeName}#${propertyKey} `;
|
6 | if (parameterIndex !== undefined) {
|
7 | errorMessage += `parameter #${parameterIndex} `;
|
8 | }
|
9 | errorMessage += "!";
|
10 | super(errorMessage);
|
11 | Object.setPrototypeOf(this, new.target.prototype);
|
12 | }
|
13 | }
|
14 | exports.NoExplicitTypeError = NoExplicitTypeError;
|