UNPKG

rxdb-hooks

Version:

React hooks for integrating with RxDB

13 lines (12 loc) 450 B
import { Subject } from 'rxjs'; import { RxCollection, RxDatabase, RxPlugin } from 'rxdb'; type CollectionRecord = Record<string, RxCollection>; export type RxDatabaseBaseExtended = RxDatabase & { newCollections$?: Subject<CollectionRecord>; }; /** * Extends RxDB prototype with a newCollections$ property: a stream emitting any * new collections added via addCollections(). */ export declare const observeNewCollections: RxPlugin; export {};