import * as Y from 'yjs'; import { WavingDBDriver } from "./WavingDBDriver"; export class WavingMemoryDB extends WavingDBDriver { async _getDoc(docId: string) { const doc = new Y.Doc({ gc: false }); (doc as any).getText('quill'); return doc; } async _setDoc(docId: string, doc: any) { // return new SharedYDoc({ name: 'test' }); } async setSessionRevision(docId: string, userToken: string, undoStack: any): Promise { } close() { } }