(
...ctxs: [...{ [K in keyof T]: Context<T[K]> }]
)
| 1181 | * @since 3.12.0 |
| 1182 | */ |
| 1183 | export const mergeAll = <T extends Array<unknown>>( |
| 1184 | ...ctxs: [...{ [K in keyof T]: Context<T[K]> }] |
| 1185 | ): Context<T[number]> => { |
| 1186 | const map = new Map() |
| 1187 | for (let i = 0; i < ctxs.length; i++) { |
| 1188 | ctxs[i].mapUnsafe.forEach((value, key) => { |
| 1189 | map.set(key, value) |
| 1190 | }) |
| 1191 | } |
| 1192 | return makeUnsafe(map) |
| 1193 | } |
| 1194 | |
| 1195 | /** |
| 1196 | * Returns a new `Context` that contains only the specified services. |
nothing calls this directly
no test coverage detected