UNPKG

mediatr-ts

Version:

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

20 lines 712 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InstantiationResolver = void 0; /** * The default resolver. */ var InstantiationResolver = /** @class */ (function () { function InstantiationResolver() { } // eslint-disable-next-line @typescript-eslint/no-unused-vars InstantiationResolver.prototype.add = function (_type) { // ignored - the instantiation resolver does not need to register anything. }; InstantiationResolver.prototype.resolve = function (type) { return new type(); }; return InstantiationResolver; }()); exports.InstantiationResolver = InstantiationResolver; //# sourceMappingURL=instantiationResolver.js.map