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

Method of

packages/effect/src/Context.ts:99–99  ·  view source on GitHub ↗
(this: void, self: Shape)

Source from the content-addressed store, hash-verified

97 */
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>

Callers 15

makeTransformerSchemaFunction · 0.65
makeTransformerTsFunction · 0.65
makeSourceFunction · 0.65
makeSourceFunction · 0.65
loadFunction · 0.65
Worktrees.test.tsFile · 0.65
Cli.test.tsFile · 0.65
SnapshotterClass · 0.65
ApiDiffClass · 0.65
WorktreesClass · 0.65
DiscoveryClass · 0.65
makePersistedEntryFunction · 0.65

Calls

no outgoing calls

Tested by 12

makeSourceFunction · 0.52
makeSourceFunction · 0.52
makePersistedEntryFunction · 0.52
makeStreamTestLayerFunction · 0.52
makeHandlerFunction · 0.52
makeFailingAppFunction · 0.52
makeLayerHandlerFunction · 0.52
makeCryptoFunction · 0.52
pullFunction · 0.52
platformContextFunction · 0.52
layerFakeProtocolFunction · 0.52
makeFailoverStorageFunction · 0.52