UNPKG

rxdb

Version:

A local-first realtime NoSQL Database for JavaScript applications - https://rxdb.info/

18 lines (17 loc) 483 B
/** * hook-functions that can be extended by the plugin */ export declare const HOOKS: { [k: string]: any[]; }; export declare function runPluginHooks(hookKey: string, obj: any): void; /** * TODO * we should not run the hooks in parallel * this makes stuff unpredictable. */ export declare function runAsyncPluginHooks(hookKey: string, obj: any): Promise<any>; /** * used in tests to remove hooks */ export declare function _clearHook(type: string, fun: Function): void;