File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 44|----------------------------------------------------------------------------*/
55
66import { JSONExt , JSONObject , JSONValue } from '@lumino/coreutils' ;
7+ import { IDisposable } from '@lumino/disposable' ;
78import { ISignal , Signal } from '@lumino/signaling' ;
89import { Awareness } from 'y-protocols/awareness' ;
910import * as Y from 'yjs' ;
1011import type { DocumentChange , ISharedDocument , StateChange } from './api.js' ;
1112
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+
1223/**
1324 * Generic shareable document.
1425 */
@@ -200,6 +211,7 @@ export abstract class YDocument<T extends DocumentChange>
200211 private _awareness : Awareness ;
201212 private _isDisposed = false ;
202213 private _disposed = new Signal < this, void > ( this ) ;
214+ providers : IDocumentProvider [ ] = [ ] ;
203215}
204216
205217/**
You can’t perform that action at this time.
0 commit comments