UNPKG

slate-devtools

Version:

`slate-devtools` as name suggests it is devtool for [slatejs](https://github.com/ianstormtaylor/slate) which will assist you in debugging the code

35 lines 943 B
import { Node, Operation, Path } from "slate"; declare type NewProperties = { renderNewProperties: true; newProperties: Partial<Node> | Record<string, never>; newPath: Path; } | { renderNewProperties: false; newProperties: null; newPath: null; }; declare type OldProperties = [Partial<Node> | Record<string, never>, Path]; declare type Offset = { renderOffset: true; offset: number; } | { renderOffset: false; offset: null; }; declare type Position = { renderPosition: true; position: number; } | { renderPosition: false; position: null; }; declare type ReturnConvertOperation = { newProperties: NewProperties; oldProperties: OldProperties; type: string; offset: Offset; position: Position; }; export declare const convertOperation: (op: Operation) => ReturnConvertOperation; export {}; //# sourceMappingURL=convertOperation.d.ts.map