@atlaskit/editor-core
Version:
A package contains Atlassian editor core functionality
13 lines (10 loc) • 351 B
text/typescript
import {
Transaction,
EditorState,
} from '../../../prosemirror';
export type CollabEvent = 'init' | 'data' | 'error';
export interface CollabEditProvider {
initialize(getState: () => any): this;
send(tr: Transaction, oldState: EditorState<any>, newState: EditorState<any>): void;
on(evt: CollabEvent, handler: (...args) => void): this;
}