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

Function toLayer

packages/rpc/src/RpcGroup.ts:285–287  ·  view source on GitHub ↗
(this: RpcGroup<any>, build: Effect.Effect<Record<string, (request: any) => any>>)

Source from the content-addressed store, hash-verified

283 })
284 },
285 toLayer(this: RpcGroup<any>, build: Effect.Effect<Record<string, (request: any) => any>>) {
286 return Layer.scopedContext(this.toHandlersContext(build))
287 },
288 of: identity,
289 toLayerHandler(this: RpcGroup<any>, tag: string, build: Effect.Effect<Record<string, (request: any) => any>>) {
290 return Layer.scopedContext(Effect.gen(this, function*() {

Callers

nothing calls this directly

Calls 1

toHandlersContextMethod · 0.80

Tested by

no test coverage detected