@eweser/db
Version:
eweser-db core database
7 lines (6 loc) • 370 B
TypeScript
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;
}>;