File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 4
4
|----------------------------------------------------------------------------*/
5
5
6
6
import { JSONExt , JSONObject , JSONValue } from '@lumino/coreutils' ;
7
+ import { IDisposable } from '@lumino/disposable' ;
7
8
import { ISignal , Signal } from '@lumino/signaling' ;
8
9
import { Awareness } from 'y-protocols/awareness' ;
9
10
import * as Y from 'yjs' ;
10
11
import type { DocumentChange , ISharedDocument , StateChange } from './api.js' ;
11
12
13
+ /**
14
+ * An interface for a document provider.
15
+ */
16
+ export interface IDocumentProvider extends IDisposable {
17
+ /**
18
+ * Returns a Promise that resolves when the document provider is ready.
19
+ */
20
+ readonly ready : Promise < void > ;
21
+ }
22
+
12
23
/**
13
24
* Generic shareable document.
14
25
*/
@@ -200,6 +211,7 @@ export abstract class YDocument<T extends DocumentChange>
200
211
private _awareness : Awareness ;
201
212
private _isDisposed = false ;
202
213
private _disposed = new Signal < this, void > ( this ) ;
214
+ providers : IDocumentProvider [ ] = [ ] ;
203
215
}
204
216
205
217
/**
You can’t perform that action at this time.
0 commit comments