UNPKG

@slate-sheikah/bridge

Version:

slate-sheikah bridge: Bridge components for slate-sheikah. Slate + Automerge + Sockets

23 lines 654 B
import Automerge from 'automerge'; import { Node, Range } from 'slate'; export declare type SyncValue = Automerge.List<Node>; export declare type SyncDoc = Automerge.Doc<{ children: SyncValue; cursors: Cursors; }>; export declare type CollabActionType = 'operation' | 'document' | 'participant'; export interface CollabAction { id?: string; type: CollabActionType; payload: any; } export interface CursorData { [key: string]: any; } export interface Cursor extends Range, CursorData { isForward: boolean; } export declare type Cursors = { [key: string]: Cursor; }; //# sourceMappingURL=index.d.ts.map