UNPKG

@eweser/db

Version:
7 lines (6 loc) 370 B
import { IndexeddbPersistence } from 'y-indexeddb'; import type { EweDocument, YDoc, indexedDBProviderPolyfill } from '../../types'; export declare const initializeDocAndLocalProvider: <T extends EweDocument>(roomId: string, existingDoc?: YDoc<T> | null, provider?: indexedDBProviderPolyfill) => Promise<{ yDoc: YDoc<T>; localProvider: IndexeddbPersistence; }>;