@activejs/core
Version:
Pragmatic, Reactive State Management for JavaScript Apps
26 lines (25 loc) • 1.12 kB
TypeScript
import { GenericUnit } from './generic-unit';
import { AsyncSystemConfig } from '../models';
import { AsyncSystemBase } from './async-system-base';
/**
* AsyncSystem is a reactive storage System, to store, replay and wait for simple async tasks.
*
* An AsyncSystem is a systematic combination of four Units.
* one each for every aspect of an asynchronous task or API, \
* e.g.: XHR, fetch or a third party abstraction like Angular's HttpClient.
*
* See {@link https://docs.activejs.dev/fundamentals/systems/asyncsystem} for more details.
*
* - AsyncSystem extends {@link AsyncSystemBase},
* which further extends {@link Base} and `Observable`
*
* @category 3. Systems
*/
export declare class AsyncSystem<Query, Data, Error> extends AsyncSystemBase<GenericUnit<Query>, GenericUnit<Data>, GenericUnit<Error>> {
/**
* Configured options. \
* Combination of global-options {@link GlobalAsyncSystemConfig} and the options passed on instantiation.
*/
readonly config: Readonly<AsyncSystemConfig<Query, Data, Error>>;
constructor(config?: AsyncSystemConfig<Query, Data, Error>);
}