UNPKG

@typed/effects

Version:

Generator-powered Effect management

21 lines 590 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Effect = void 0; const env_1 = require("@typed/env"); var Effect; (function (Effect) { function of(value) { return fromEnv(env_1.Pure.of(value)); } Effect.of = of; function* fromEnv(env) { return yield env; } Effect.fromEnv = fromEnv; function* withEnv(fn) { const effect = yield env_1.withEnv(fn); return yield* effect; } Effect.withEnv = withEnv; })(Effect = exports.Effect || (exports.Effect = {})); //# sourceMappingURL=Effect.js.map