UNPKG

@effect-ts/system

Version:

Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.

29 lines (24 loc) 669 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateService = updateService; exports.updateService_ = updateService_; var _core = /*#__PURE__*/require("../core.js"); /** * Updates a service in the environment of this effect. */ function updateService_(self, tag, f, __trace) { return (0, _core.provideSome_)(self, r => ({ ...r, ...tag.has(f(tag.read(r))) }), __trace); } /** * Updates a service in the environment of this effect. * * @ets_data_first updateService_ */ function updateService(tag, f, __trace) { return self => updateService_(self, tag, f, __trace); } //# sourceMappingURL=updateService.js.map