(
reducers: { readonly [K in keyof A]: Reducer.Reducer<A[K]> }
)
| 714 | * @since 4.0.0 |
| 715 | */ |
| 716 | export function makeReducer<A extends ReadonlyArray<unknown>>( |
| 717 | reducers: { readonly [K in keyof A]: Reducer.Reducer<A[K]> } |
| 718 | ): Reducer.Reducer<A> { |
| 719 | const combine = makeCombiner(reducers).combine |
| 720 | const initialValue = [] |
| 721 | for (let i = 0; i < reducers.length; i++) { |
| 722 | initialValue.push(reducers[i].initialValue) |
| 723 | } |
| 724 | return Reducer.make(combine, initialValue as unknown as A) |
| 725 | } |
nothing calls this directly
no test coverage detected