UNPKG

607 BTypeScriptView Raw
1import { 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 */
7export interface RangeRef {
8 current: Range | null;
9 affinity: 'forward' | 'backward' | 'outward' | 'inward' | null;
10 unref(): Range | null;
11}
12export interface RangeRefInterface {
13 transform: (ref: RangeRef, op: Operation) => void;
14}
15export declare const RangeRef: RangeRefInterface;
16//# sourceMappingURL=range-ref.d.ts.map
\No newline at end of file