UNPKG

584 BTypeScriptView Raw
1import { Operation, Point } from '..';
2/**
3 * `PointRef` objects keep a specific point in a document synced over time as new
4 * operations are applied to the editor. You can access their `current` property
5 * at any time for the up-to-date point value.
6 */
7export interface PointRef {
8 current: Point | null;
9 affinity: 'forward' | 'backward' | null;
10 unref(): Point | null;
11}
12export interface PointRefInterface {
13 transform: (ref: PointRef, op: Operation) => void;
14}
15export declare const PointRef: PointRefInterface;
16//# sourceMappingURL=point-ref.d.ts.map
\No newline at end of file