Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Latest commit

 

History

History
27 lines (16 loc) · 664 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 664 Bytes

Requests

Action creators

declare const startRequest: (domain: string) => object;

declare const endRequestSuccess: (domain: string) => object;

declare const endRequestError: (domain: string, error: Error) => object;

declare const removeRequest: (domain: string) => object;

Selectors

Note that all selectors are currified

declare const getRequestStatus: (domain: string, state: object) => string;

declare const isRequestPending: (domain: string, state: object) => boolean;

declare const isRequestSucceeded: (domain: string, state: object) => boolean;

declare const getRequestError: (domain: string, state: object) => Error;