Files
coopgo/node_modules/slate/dist/interfaces/path-ref.d.ts
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

16 lines
572 B
TypeScript

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