UNPKG

test-rxdb

Version:

A local realtime NoSQL Database for JavaScript applications -

23 lines (22 loc) 921 B
import type { ById, ReplicationOptions, ReplicationPullOptions, ReplicationPushOptions } from '../../types/index.d.ts'; export type CouchDBCheckpointType = { sequence: number; }; export type FetchMethodType = typeof fetch; export type SyncOptionsCouchDB<RxDocType> = Omit<ReplicationOptions<RxDocType, any>, 'pull' | 'push'> & { url: string; /** * Here you can set a custom fetch method * to use http headers or credentials when doing requests. */ fetch?: FetchMethodType; pull?: Omit<ReplicationPullOptions<RxDocType, CouchDBCheckpointType>, 'handler' | 'stream$'> & { /** * Heartbeat time in milliseconds * for the long polling of the changestream. */ heartbeat?: number; }; push?: Omit<ReplicationPushOptions<RxDocType>, 'handler'>; }; export type URLQueryParams = ById<string | number | undefined | boolean>;