thunk-request-status
Version:
Utility library for handle thunk request statuses
6 lines (5 loc) • 323 B
TypeScript
import { AsyncThunk } from './request-statuses.types';
export declare const useIsIdle: (thunk: AsyncThunk) => boolean;
export declare const useIsLoading: (thunk: AsyncThunk) => boolean;
export declare const useIsRejected: (thunk: AsyncThunk) => boolean;
export declare const useIsFulfilled: (thunk: AsyncThunk) => boolean;