MCPcopy Create free account
hub / github.com/Effect-TS/effect / provideService

Function provideService

packages/effect/src/internal/effect.ts:2219–2225  ·  view source on GitHub ↗
(this: any)

Source from the content-addressed store, hash-verified

2217 implementation: S
2218 ): Effect.Effect<A, E, Exclude<R, I>>
2219} = function(this: any) {
2220 if (arguments.length === 1) {
2221 return dual(2, (self, impl) => provideServiceImpl(self, arguments[0], impl)) as any
2222 }
2223 return dual(3, (self, service, impl) => provideServiceImpl(self, service, impl))
2224 .apply(this, arguments as any) as any
2225}
2226
2227const provideServiceImpl = <A, E, R, I, S>(
2228 self: Effect.Effect<A, E, R>,

Callers 3

txFunction · 0.85
Channel.tsFile · 0.85
effect.tsFile · 0.85

Calls 1

provideServiceImplFunction · 0.85

Tested by

no test coverage detected