Installation
npm install --save @types/redux-promise
Summary
This package contains type definitions for redux-promise (https://github.com/acdlite/redux-promise).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-promise.
index.d.ts
import * as Redux from "redux";
declare const promise: ReduxPromise.Promise;
export = promise;
declare namespace ReduxPromise {
export interface Promise extends Redux.Middleware {}
}
declare module "redux" {
type PromiseAction<S> = (dispatch: Redux.Dispatch<S>, getState?: () => S) => any;
interface Dispatch<S> {
<R>(asyncAction: PromiseAction<S>): R;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: redux
Credits
These definitions were written by Rogelio Morrell Caballero, and Kaur Kuut.