Installation
npm install --save @types/multireducer
Summary
This package contains type definitions for multireducer (https://github.com/erikras/multireducer).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/multireducer.
index.d.ts
export interface MetaObject {
[key: string]: string;
}
export interface ActionObject {
meta: MetaObject;
[rest: string]: any;
}
export function bindActionCreators(actions: any, dispatch: any, reducerKey: string): any;
export function wrapDispatch(dispatch: any, reducerKey: string): any;
export function wrapAction(action: any, reducerKey: string): ActionObject;
export default function multireducer(
reducers: { [key: string]: any },
reducerKey?: string,
): (state: any, action: any) => any;
Additional Details
- Last updated: Tue, 07 Nov 2023 0939 GMT
- Dependencies: none
Credits
These definitions were written by Anthony M. Lee.