UNPKG

@snipsonian/observable-state

Version:

Observable-state snippets (redux-like)

12 lines (11 loc) 953 B
import { AsyncOperation, IAsyncEntity } from './types'; export declare const asyncOperationList: string[]; export declare function isValidAsyncOperation(possibleOperation: string): boolean; export declare function isAnyAsyncOperationBusy(asyncEntity: IAsyncEntity<any>): boolean; export declare function isFetchBusy(asyncEntity: IAsyncEntity<any>): boolean; export declare function isUpdateBusy(asyncEntity: IAsyncEntity<any>): boolean; export declare function isAsyncOperationBusy(asyncEntity: IAsyncEntity<any>, operation: AsyncOperation): boolean; export declare function hasFetchSucceeded(asyncEntity: IAsyncEntity<any>): boolean; export declare function hasFetchFailed(asyncEntity: IAsyncEntity<any>): boolean; export declare function hasAsyncOperationSucceeded(asyncEntity: IAsyncEntity<any>, operation: AsyncOperation): boolean; export declare function hasAsyncOperationFailed(asyncEntity: IAsyncEntity<any>, operation: AsyncOperation): boolean;