range-ref.d.ts 592 B

12345678910111213141516
  1. import { Operation, Range } from '..';
  2. /**
  3. * `RangeRef` objects keep a specific range 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 range value.
  6. */
  7. export interface RangeRef {
  8. current: Range | null;
  9. affinity: 'forward' | 'backward' | 'outward' | 'inward' | null;
  10. unref(): Range | null;
  11. }
  12. export interface RangeRefInterface {
  13. transform: (ref: RangeRef, op: Operation) => void;
  14. }
  15. export declare const RangeRef: RangeRefInterface;
  16. //# sourceMappingURL=range-ref.d.ts.map