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

12 lines 427 B
import { Operation } from "slate"; import { ReactEditor } from "slate-react"; export declare type DevtoolsEditor = { devtools_history: { normalizing: boolean; op: Operation; }[]; devtools_run: (op: Operation) => void; devtools_reset: () => void; }; export declare const withDevtools: <T extends ReactEditor>(editor: T) => T & DevtoolsEditor; //# sourceMappingURL=withDevtools.d.ts.map