UNPKG

redux-optimist-promise

Version:

Promise middleware for Redux with automatic binding for redux-optimist

19 lines (15 loc) 625 B
declare module 'redux-optimist-promise' { import { Middleware } from 'redux' export function resolve(actionName: string): string export function unresolve(actionName: string): string export function reject(actionName: string): string export function unreject(actionName: string): string export function isResolvedAction(actionName: string): boolean export function isRejectedAction(actionName: string): boolean export function isThenAction(actionName: string): boolean export default function(options?: { throwOnReject?: boolean resolvedName?: string rejectedName?: string }): Middleware }