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

Method combine

packages/effect/src/unstable/http/HttpRouter.ts:994–1008  ·  view source on GitHub ↗
(other: Middleware<Config2>)

Source from the content-addressed store, hash-verified

992 layer: any
993
994 combine<
995 Config2 extends {
996 provides: any
997 handles: any
998 error: any
999 requires: any
1000 layerError: any
1001 layerRequires: any
1002 }
1003 >(other: Middleware<Config2>): Middleware<any> {
1004 return new MiddlewareImpl(
1005 this.layerFn,
1006 this.dependencies ? Layer.provideMerge(this.dependencies, other.layer as any) : other.layer as any
1007 ) as any
1008 }
1009}
1010
1011const middlewareCache = new WeakMap<Context.Context<never>, any>()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected