UNPKG

slate-history

Version:

An operation-based history implementation for Slate editors.

9 lines • 566 B
import { Operation, Range } from 'slate'; import { History } from './history'; type Side = 'before' | 'after'; export declare const transformOperation: (op: Operation, by: Operation, side: Side) => Operation[] | null; export declare const transformOperations: (ops: Operation[], by: Operation[], side: Side) => [Operation[], Operation[]] | null; export declare const transformRange: (range: Range | null, ops: Operation[]) => Range | null; export declare const rebaseHistory: (history: History, op: Operation) => void; export {}; //# sourceMappingURL=rebase.d.ts.map