UNPKG

572 BTypeScriptView Raw
1import { Operation, Path } from '..';
2/**
3 * `PathRef` objects keep a specific path 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 path value.
6 */
7export interface PathRef {
8 current: Path | null;
9 affinity: 'forward' | 'backward' | null;
10 unref(): Path | null;
11}
12export interface PathRefInterface {
13 transform: (ref: PathRef, op: Operation) => void;
14}
15export declare const PathRef: PathRefInterface;
16//# sourceMappingURL=path-ref.d.ts.map
\No newline at end of file