@matechs/effect
Advanced tools
Comparing version 0.4.9 to 0.4.10
@@ -226,2 +226,3 @@ import { Bifunctor3 } from "fp-ts/lib/Bifunctor"; | ||
export declare function provideS<R>(r: R): <R2, E, A>(eff: Effect<R2 & R, E, A>) => Effect<R2, E, A>; | ||
export declare function provideSM<R, R3, E2>(rm: Effect<R3, E2, R>): <R2, E, A>(eff: Effect<R2 & R, E, A>) => Effect<R2 & R3, E2 | E, A>; | ||
/** | ||
@@ -228,0 +229,0 @@ * Provides all environment to the child |
@@ -280,2 +280,8 @@ "use strict"; | ||
exports.provideS = provideS; | ||
function provideSM(rm) { | ||
return function (eff) { | ||
return chain_(rm, function (r) { return exports.provideR(function (r2) { return (__assign(__assign({}, r2), r)); })(eff); }); | ||
}; | ||
} | ||
exports.provideSM = provideSM; | ||
/** | ||
@@ -282,0 +288,0 @@ * Provides all environment to the child |
@@ -9,3 +9,3 @@ import * as T from "./effect"; | ||
}; | ||
export declare function access<A extends ModuleShape<A>>(sp: ModuleSpec<A> | A): Derived<A>; | ||
export declare function access<A extends ModuleShape<A>>(sp: ModuleSpec<A>): Derived<A>; | ||
export declare type ModuleShape<M> = { | ||
@@ -12,0 +12,0 @@ [k in keyof M]: { |
@@ -24,5 +24,4 @@ "use strict"; | ||
function access(sp) { | ||
var _a; | ||
var derived = {}; | ||
var a = (_a = sp[exports.specURI], (_a !== null && _a !== void 0 ? _a : sp)); | ||
var a = sp[exports.specURI]; | ||
var _loop_1 = function (s) { | ||
@@ -52,4 +51,4 @@ derived[s] = {}; | ||
}; | ||
for (var _i = 0, _b = Reflect.ownKeys(a); _i < _b.length; _i++) { | ||
var s = _b[_i]; | ||
for (var _i = 0, _a = Reflect.ownKeys(a); _i < _a.length; _i++) { | ||
var s = _a[_i]; | ||
_loop_1(s); | ||
@@ -56,0 +55,0 @@ } |
{ | ||
"name": "@matechs/effect", | ||
"version": "0.4.9", | ||
"version": "0.4.10", | ||
"license": "MIT", | ||
@@ -30,3 +30,3 @@ "private": false, | ||
}, | ||
"gitHead": "12688cee1c816133f71bc517824d01ecb3c71297" | ||
"gitHead": "3ac2057263abee784320a8f6f04468a632be35c7" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
381339
6659