snapshot.d.ts 471 B

12345678910111213141516
  1. import { ISingleDBEvent, SnapshotType, ISnapshot } from '../typings/index';
  2. interface ISnapshotConstructorOptions {
  3. id: number;
  4. docChanges: ISingleDBEvent[];
  5. docs: Record<string, any>[];
  6. type?: SnapshotType;
  7. msgType?: String;
  8. }
  9. export declare class Snapshot implements ISnapshot {
  10. id: number;
  11. docChanges: ISingleDBEvent[];
  12. docs: Record<string, any>[];
  13. type?: 'init';
  14. constructor(options: ISnapshotConstructorOptions);
  15. }
  16. export {};