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

Function matchAll

packages/infra/src/routing.ts:770–784  ·  view source on GitHub ↗
(
    handlers: T
  )

Source from the content-addressed store, hash-verified

768 }
769
770 function matchAll<
771 T extends {
772 [key: string]: Layer.Layer<never, any, any>
773 }
774 >(
775 handlers: T
776 ) {
777 const routers = typedValuesOf(handlers)
778
779 return Layer.mergeAll(...routers as [any]) as unknown as Layer.Layer<
780 never,
781 Layer.Error<typeof handlers[keyof typeof handlers]>,
782 Layer.Services<typeof handlers[keyof typeof handlers]>
783 >
784 }
785
786 return {
787 matchAll,

Calls 1

typedValuesOfFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…