You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
557 B
16 lines
557 B
|
2 years ago
|
import { Operation, Path } from '..';
|
||
|
|
/**
|
||
|
|
* `PathRef` objects keep a specific path in a document synced over time as new
|
||
|
|
* operations are applied to the editor. You can access their `current` property
|
||
|
|
* at any time for the up-to-date path value.
|
||
|
|
*/
|
||
|
|
export interface PathRef {
|
||
|
|
current: Path | null;
|
||
|
|
affinity: 'forward' | 'backward' | null;
|
||
|
|
unref(): Path | null;
|
||
|
|
}
|
||
|
|
export interface PathRefInterface {
|
||
|
|
transform: (ref: PathRef, op: Operation) => void;
|
||
|
|
}
|
||
|
|
export declare const PathRef: PathRefInterface;
|
||
|
|
//# sourceMappingURL=path-ref.d.ts.map
|