UNPKG

@datorama/akita

Version:

State Management Tailored-Made for JS Applications

24 lines (23 loc) 932 B
import { Msg } from './types'; export declare enum HttpMethod { GET = "GET", POST = "POST", PUT = "PUT", PATCH = "PATCH", DELETE = "DELETE" } export declare type ActionType = 'success' | 'error'; export declare type EntityServiceAction = { storeName: string; type: ActionType; payload: any; method: HttpMethod; } & Msg; export declare const ofType: (type: ActionType) => import("rxjs").MonoTypeOperatorFunction<EntityServiceAction>; export declare const filterMethod: (method: HttpMethod | "GET" | "POST" | "PUT" | "PATCH" | "DELETE") => import("rxjs").MonoTypeOperatorFunction<EntityServiceAction>; export declare const filterStore: (name: string) => import("rxjs").MonoTypeOperatorFunction<EntityServiceAction>; export declare class NgEntityServiceNotifier { private dispatcher; action$: import("rxjs").Observable<EntityServiceAction>; dispatch(event: EntityServiceAction): void; }