UNPKG

1.18 kBJavaScriptView Raw
1var __extends = (this && this.__extends) || (function () {
2 var extendStatics = function (d, b) {
3 extendStatics = Object.setPrototypeOf ||
4 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6 return extendStatics(d, b);
7 }
8 return function (d, b) {
9 extendStatics(d, b);
10 function __() { this.constructor = d; }
11 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12 };
13})();
14Object.defineProperty(exports, "__esModule", { value: true });
15// @schemaDefinition: A GraphQL type schema in shorthand
16// @resolvers: Definitions for resolvers to be merged with schema
17var SchemaError = /** @class */ (function (_super) {
18 __extends(SchemaError, _super);
19 function SchemaError(message) {
20 var _this = _super.call(this, message) || this;
21 _this.message = message;
22 Error.captureStackTrace(_this, _this.constructor);
23 return _this;
24 }
25 return SchemaError;
26}(Error));
27exports.default = SchemaError;
28//# sourceMappingURL=SchemaError.js.map
\No newline at end of file