( ...layers: Layers )
| 817 | |
| 818 | /** @internal */ |
| 819 | export const mergeAll = < |
| 820 | Layers extends readonly [Layer.Layer<never, any, any>, ...Array<Layer.Layer<never, any, any>>] |
| 821 | >( |
| 822 | ...layers: Layers |
| 823 | ): Layer.Layer< |
| 824 | { [k in keyof Layers]: Layer.Layer.Success<Layers[k]> }[number], |
| 825 | { [k in keyof Layers]: Layer.Layer.Error<Layers[k]> }[number], |
| 826 | { [k in keyof Layers]: Layer.Layer.Context<Layers[k]> }[number] |
| 827 | > => { |
| 828 | const mergeAll = Object.create(proto) |
| 829 | mergeAll._op_layer = OpCodes.OP_MERGE_ALL |
| 830 | mergeAll.layers = layers |
| 831 | return mergeAll as any |
| 832 | } |
| 833 | |
| 834 | /** @internal */ |
| 835 | export const orDie = <A, E, R>(self: Layer.Layer<A, E, R>): Layer.Layer<A, never, R> => |
no test coverage detected