Files
enviPy-bayer/static/js/ketcher2/node_modules/redux-thunk/index.d.ts
2025-06-23 20:13:54 +02:00

19 lines
416 B
TypeScript

import {Middleware, Dispatch} from "redux";
export type ThunkAction<R, S, E> = (dispatch: Dispatch<S>, getState: () => S,
extraArgument: E) => R;
declare module "redux" {
export interface Dispatch<S> {
<R, E>(asyncAction: ThunkAction<R, S, E>): R;
}
}
declare const thunk: Middleware & {
withExtraArgument(extraArgument: any): Middleware;
};
export default thunk;