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

Function provideServiceImpl

packages/effect/src/internal/effect.ts:2227–2231  ·  view source on GitHub ↗
(
  self: Effect.Effect<A, E, R>,
  service: Context.Key<I, S>,
  implementation: S
)

Source from the content-addressed store, hash-verified

2225}
2226
2227const provideServiceImpl = <A, E, R, I, S>(
2228 self: Effect.Effect<A, E, R>,
2229 service: Context.Key<I, S>,
2230 implementation: S
2231): Effect.Effect<A, E, Exclude<R, I>> => updateContext(self, Context.add(service, implementation)) as any
2232
2233/** @internal */
2234export const provideServiceEffect: {

Callers 1

provideServiceFunction · 0.85

Calls 1

addMethod · 0.65

Tested by

no test coverage detected