@triviality/core
Version:
Purely typed service container
14 lines • 669 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var ReferenceContext_1 = require("./ReferenceContext");
var AsyncServiceFunctionReference_1 = require("../Value/AsyncServiceFunctionReference");
var GlobalContext_1 = require("./GlobalContext");
exports.createFeatureFactoryAsyncContext = function (_a) {
var container = _a.container;
return ({
synchronize: ReferenceContext_1.wrapReturnAsReference(function (sf) {
return container.add(new AsyncServiceFunctionReference_1.AsyncServiceFunctionReference(sf, GlobalContext_1.getCurrentFeatureFactory()));
}),
});
};
//# sourceMappingURL=AsyncContext.js.map
;