@renewx/core
Version:
Lightweight state management library with validation support
12 lines (11 loc) • 689 B
TypeScript
import type { Unsubscribe } from "../types/core";
import type { ActionInfo } from "../types/action";
import type { StoreID } from "../types/id";
import type { QueueWatcher } from "../types/watch";
export declare const batchQueueStart: () => boolean;
export declare const batchQueueEnd: () => void;
export declare const getFn: (fn: any) => Unsubscribe;
export declare const globalUnWatch: (watcher: QueueWatcher<any>) => true;
export declare const runQueue: () => void;
export declare const notify: (state: any, unWatchList: Map<QueueWatcher<any>, Unsubscribe>, info?: ActionInfo) => void;
export declare const getUnWatchList: <State>(id: StoreID) => Map<QueueWatcher<State>, Unsubscribe>;