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
19 lines • 758 B
TypeScript
import { Editor, Operation } from "slate";
import { HistoryEditor } from "../util/historyEditor";
/**
* My plan to interact with this api is to directly change the value like
*
* editor.shouldNormalize = false
* editor.apply(someOperation)
*
* I am not sure weather it is okay to that but since its working, I am not planning to change it
* but you do know for the fact that interacting like that will lead to some problems open an issue or an
* pr with the correct way
*
*/
export declare const withHistory: <T extends Editor>(editor: T) => T & HistoryEditor;
/**
* Copied from slate-history
*/
export declare const shouldMerge: (op: Operation, prev: Operation | undefined) => boolean;
//# sourceMappingURL=withHistory.d.ts.map