Skip to content

Commit e8c0e18

Browse files
authored
Backport PR jupyter-server#282: Add the awareness in the shared document interface (jupyter-server#283)
1 parent b50bf8e commit e8c0e18

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
@@ -22,6 +22,7 @@ import type {
2222
} from '@lumino/coreutils';
2323
import type { IObservableDisposable } from '@lumino/disposable';
2424
import type { ISignal } from '@lumino/signaling';
25+
import { IAwareness } from './awareness.js';
2526

2627
/**
2728
* Changes on Sequence-like data are expressed as Quill-inspired deltas.
@@ -95,6 +96,11 @@ export interface ISharedDocument extends ISharedBase {
9596
*/
9697
readonly state: JSONObject;
9798

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

0 commit comments

Comments
 (0)