MCPcopy Create free account
hub / github.com/effect-app/libs / of

Method of

repos/effect/packages/effect/src/Context.ts:100–100  ·  view source on GitHub ↗
(this: void, 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

rpc-schemas.tsFile · 0.65
layerBackingIndexedDbFunction · 0.65
makeFunction · 0.65
Geolocation.tsFile · 0.65
makeFunction · 0.65
layerFunction · 0.65
Permissions.tsFile · 0.65
makeTransformerSchemaFunction · 0.65
makeTransformerTsFunction · 0.65
makePersistedEntryFunction · 0.65

Calls

no outgoing calls

Tested by 6

makePersistedEntryFunction · 0.52
makeHandlerFunction · 0.52
makeFailingAppFunction · 0.52
makeLayerHandlerFunction · 0.52
makeStreamTestLayerFunction · 0.52
pullFunction · 0.52