Files
coopgo/node_modules/slate/dist/interfaces/point-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

17 lines
617 B
TypeScript

import { Operation, Point } from '..';
import { TextDirection } from './types';
/**
* `PointRef` objects keep a specific point 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 point value.
*/
export interface PointRef {
current: Point | null;
affinity: TextDirection | null;
unref(): Point | null;
}
export interface PointRefInterface {
transform: (ref: PointRef, op: Operation) => void;
}
export declare const PointRef: PointRefInterface;
//# sourceMappingURL=point-ref.d.ts.map