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

Method context

packages/effect/src/Context.ts:100–100  ·  view source on GitHub ↗
(self: Shape)

Source from the content-addressed store, hash-verified

98export interface Service<in out Identifier, in out Shape> extends Key<Identifier, Shape> {
99 of(this: void, self: Shape): Shape
100 context(self: Shape): Context<Identifier>
101 use<A, E, R>(f: (service: Shape) => Effect<A, E, R>): Effect<A, E, R | Identifier>
102 useSync<A>(f: (service: Shape) => A): Effect<A, never, Identifier>
103}

Callers 15

AnthropicConfigClass · 0.80
OpenAiClient.tsFile · 0.80
OpenAiConfigClass · 0.80
OpenAiConfigClass · 0.80
OpenRouterConfigClass · 0.80
runFunction · 0.80
layerFunction · 0.80
toReadableFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected