UNPKG

use-async-reducer

Version:

Provides a reducer to simplify handling of async actions

7 lines (6 loc) 598 B
import { ACTION_TYPES } from './constants'; export declare const initialize: import("typesafe-actions/dist/type-helpers").EmptyAC<ACTION_TYPES.INITIALIZE>; export declare const request: import("typesafe-actions/dist/type-helpers").EmptyAC<ACTION_TYPES.REQUEST>; export declare const success: import("typesafe-actions/dist/type-helpers").PayloadAC<ACTION_TYPES.SUCCESS, any>; export declare const failure: import("typesafe-actions/dist/type-helpers").PayloadAC<ACTION_TYPES.FAILURE, Error>; export declare const complete: import("typesafe-actions/dist/type-helpers").EmptyAC<ACTION_TYPES.COMPLETE>;