mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* added type definitions for multireducer * added type definitions for multireducer fixed issues
21 lines
755 B
TypeScript
21 lines
755 B
TypeScript
// Type definitions for multireducer 3.1
|
|
// Project: https://github.com/erikras/multireducer
|
|
// Definitions by: Anthony M. Lee <https://github.com/immigration9>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.1
|
|
|
|
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;
|