Skip to content

Commit 5a205d9

Browse files
authored
Add the awareness in the shared document interface (#282)
* Add the awareness in the shared document interface * integrity
1 parent 9e091ea commit 5a205d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

javascript/src/api.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import type {
2323
import type { IObservableDisposable } from '@lumino/disposable';
2424
import type { ISignal } from '@lumino/signaling';
2525
import * as Y from 'yjs';
26+
import { IAwareness } from './awareness.js';
2627

2728
/**
2829
* Changes on Sequence-like data are expressed as Quill-inspired deltas.
@@ -96,6 +97,11 @@ interface ISharedDocumentNoSource extends ISharedBase {
9697
*/
9798
readonly state: JSONObject;
9899

100+
/**
101+
* Document awareness
102+
*/
103+
readonly awareness: IAwareness;
104+
99105
/**
100106
* Get the value for a state attribute
101107
*

0 commit comments

Comments
 (0)