1234567891011121314151617181920212223242526272829303132 |
- import 'redux';
- declare module 'redux' {
-
-
- function bindActionCreators<ActionCreators extends ActionCreatorsMapObject<any>>(
- actionCreators: ActionCreators,
- dispatch: Dispatch,
- ): {
- [ActionCreatorName in keyof ActionCreators]: ReturnType<
- ActionCreators[ActionCreatorName]
- > extends ThunkAction<any, any, any, any>
- ? (
- ...args: Parameters<ActionCreators[ActionCreatorName]>
- ) => ReturnType<ReturnType<ActionCreators[ActionCreatorName]>>
- : ActionCreators[ActionCreatorName];
- };
-
- export interface Dispatch<A extends Action = AnyAction> {
- <ReturnType = any, State = any, ExtraThunkArg = any>(
- thunkAction: ThunkAction<ReturnType, State, ExtraThunkArg, A>,
- ): ReturnType;
- }
- }
|