Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
slate / dist / interfaces / range-ref.d.ts
Size: Mime:
import { Operation, Range } from '..';
/**
 * `RangeRef` objects keep a specific range 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 range value.
 */
export interface RangeRef {
    current: Range | null;
    affinity: 'forward' | 'backward' | 'outward' | 'inward' | null;
    unref(): Range | null;
}
export declare const RangeRef: {
    /**
     * Transform the range ref's current value by an operation.
     */
    transform(ref: RangeRef, op: Operation): void;
};
//# sourceMappingURL=range-ref.d.ts.map