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

Method context

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

Source from the content-addressed store, hash-verified

104export interface Service<in out Identifier, in out Shape> extends Key<Identifier, Shape> {
105 of(this: void, self: Shape): Shape
106 context(self: Shape): Context<Identifier>
107 use<A, E, R>(f: (service: Shape) => Effect<A, E, R>): Effect<A, E, R | Identifier>
108 useSync<A>(f: (service: Shape) => A): Effect<A, never, Identifier>
109}

Callers 15

WebsiteClass · 0.80
AlertsClass · 0.80
PgClient.tsFile · 0.80
PgPool.tsFile · 0.80
TelegramChat.tsFile · 0.80
auth.tsFile · 0.80
AnthropicConfigClass · 0.80
AmazonBedrockConfigClass · 0.80
OpenAiClient.tsFile · 0.80
OpenAiConfigClass · 0.80

Calls

no outgoing calls

Tested by 1

callFunction · 0.64