mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
docs(editor): improve documentation for store class (#10949)
This commit is contained in:
@@ -29,20 +29,14 @@ export interface Doc {
|
||||
*/
|
||||
historyUpdated: Subject<void>;
|
||||
/**
|
||||
* @internal
|
||||
* This fires when the doc yBlock is updated.
|
||||
*/
|
||||
yBlockUpdated: Subject<
|
||||
| {
|
||||
type: 'add';
|
||||
id: string;
|
||||
isLocal: boolean;
|
||||
}
|
||||
| {
|
||||
type: 'delete';
|
||||
id: string;
|
||||
isLocal: boolean;
|
||||
}
|
||||
>;
|
||||
yBlockUpdated: Subject<{
|
||||
type: 'add' | 'delete';
|
||||
id: string;
|
||||
isLocal: boolean;
|
||||
}>;
|
||||
};
|
||||
|
||||
get history(): Y.UndoManager;
|
||||
|
||||
Reference in New Issue
Block a user