UNPKG

458 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3class InterfaceResolveTypeError extends Error {
4 constructor(interfaceMetadata) {
5 super(`Cannot resolve type for interface ${interfaceMetadata.name}! ` +
6 `You need to return instance of object type class, not a plain object!`);
7 Object.setPrototypeOf(this, new.target.prototype);
8 }
9}
10exports.InterfaceResolveTypeError = InterfaceResolveTypeError;