UNPKG
@typed/effects
Version:
latest (6.8.0)
6.8.0
6.7.3
6.7.2
6.7.1
6.7.0
6.6.0
6.5.1
6.5.0
6.4.0
6.3.2
6.3.1
6.3.0
6.2.1
6.2.0
6.1.0
6.0.0
5.2.0
5.1.2
5.1.1
5.1.0
5.0.0
4.0.1
4.0.0
3.1.2
3.1.1
3.1.0
3.0.0
2.2.0
2.1.0
2.0.0
1.4.0
1.3.0
1.2.1
1.2.0
1.1.0
1.0.0
Generator-powered Effect management
github.com/TylorS/typed-prelude
TylorS/typed-prelude
@typed/effects
/
esm
/
run
/
runWith.js
7 lines
•
269 B
JavaScript
View Raw
1
2
3
4
5
6
7
import
{ provide }
from
'@typed/env'
;
import
{
Effect
}
from
'../Effect'
;
import
{ runEffect }
from
'./runEffect'
;
export
function
runWith
(
effect, capabilities
) {
return
Effect
.
fromEnv
(
provide
(
runEffect
(effect), capabilities)); }
//# sourceMappingURL=runWith.js.map