point-ref.d.ts 569 B

12345678910111213141516
  1. import { 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. */
  7. export interface PointRef {
  8. current: Point | null;
  9. affinity: 'forward' | 'backward' | null;
  10. unref(): Point | null;
  11. }
  12. export interface PointRefInterface {
  13. transform: (ref: PointRef, op: Operation) => void;
  14. }
  15. export declare const PointRef: PointRefInterface;
  16. //# sourceMappingURL=point-ref.d.ts.map