collaborative-editor
Version:
JSON CRDT str node bindings to any generic plain text editor.
18 lines (17 loc) • 535 B
TypeScript
import type { ITimestampStruct } from 'json-joy/lib/json-crdt-patch/clock';
export declare class Selection {
/** Local selection start. */
start: number | null;
/** Local selection end. */
end: number | null;
/** Local selection direction. */
dir: -1 | 0 | 1;
/** Timestamp when selection last updated. */
ts: number;
/** Model tick. */
tick: number;
/** Remote selection start. */
startId: ITimestampStruct | null;
/** Remote selection end. */
endId: ITimestampStruct | null;
}