UNPKG

mediatr-ts

Version:

Mimic the famous MediatR csharp library see: (https://github.com/jbogard/MediatR)

30 lines 1.29 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var PublishError = /** @class */ (function (_super) { __extends(PublishError, _super); function PublishError(message, results) { var _newTarget = this.constructor; var _this = _super.call(this, message) || this; _this.name = "PublishError"; // Fix for instanceOf Object.setPrototypeOf(_this, _newTarget.prototype); _this.results = results; return _this; } return PublishError; }(Error)); export default PublishError; //# sourceMappingURL=publish-error.js.map