Skip to content

Commit

Permalink
Add the awareness in the shared document interface (#282)
Browse files Browse the repository at this point in the history
* Add the awareness in the shared document interface

* integrity
  • Loading branch information
brichet authored Oct 17, 2024
1 parent 9e091ea commit 5a205d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions javascript/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import type {
import type { IObservableDisposable } from '@lumino/disposable';
import type { ISignal } from '@lumino/signaling';
import * as Y from 'yjs';
import { IAwareness } from './awareness.js';

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

/**
* Document awareness
*/
readonly awareness: IAwareness;

/**
* Get the value for a state attribute
*
Expand Down

0 comments on commit 5a205d9

Please sign in to comment.