|
|
@@ -1,6 +1,6 @@
|
|
|
import type { Server } from 'socket.io';
|
|
|
import { MongodbPersistence } from 'y-mongodb-provider';
|
|
|
-import { YSocketIO, type Document } from 'y-socket.io/dist/server';
|
|
|
+import { YSocketIO, type Document as Ydoc } from 'y-socket.io/dist/server';
|
|
|
import * as Y from 'yjs';
|
|
|
|
|
|
import { getMongoUri } from '../util/mongoose-utils';
|
|
|
@@ -99,7 +99,7 @@ class YjsConnectionManager {
|
|
|
Y.encodeStateAsUpdate(currentYdoc);
|
|
|
}
|
|
|
|
|
|
- public getCurrentYdoc(pageId: string): Document | undefined {
|
|
|
+ public getCurrentYdoc(pageId: string): Ydoc | undefined {
|
|
|
const currentYdoc = this.ysocketio.documents.get(`yjs/${pageId}`);
|
|
|
return currentYdoc;
|
|
|
}
|