(
handlers: T
)
| 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, |
no test coverage detected
searching dependent graphs…