UNPKG

react-redux-dispatch-async

Version:

hooks & redux middleware to be able to wait async actions with fixed defined suffixes

9 lines (8 loc) 281 B
import { Action } from 'redux'; export declare type Listener<T = any> = (action: Action & { payload: T; }) => void; export declare const listeners: { [id: string]: Listener; }; export declare const addActionListener: <T>(newListener: Listener<T>) => () => boolean;