@types/redux-promise
TypeScript icon, indicating that this package has built-in type declarations

0.5.32 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/redux-promise

Weekly Downloads

12,475

Version

0.5.32

License

MIT

Unpacked Size

3.62 kB

Total Files

5

Last publish

Collaborators

  • types