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

23 lines 970 B
import { Operation } from "slate"; import { ReactEditor } from "slate-react"; import { DevtoolsEditor } from "../plugins/withDevtools"; import { DTOperation } from "./DTOperation"; import { HistoryEditor } from "./historyEditor"; export declare type BatchOptions = { normalizing?: boolean; location?: "Devtools" | "App"; }; export declare class Batch { readonly normalizing: boolean; readonly ops: DTOperation<Operation>[]; readonly id: string; readonly location: "Devtools" | "App"; constructor(ops: DTOperation<Operation>[], options?: BatchOptions); static addOperationsToBatches(current: Batch[], value: { op: Operation; normalizing: boolean; }[]): Batch[]; static inverseOperations(current: Batch[]): DTOperation<Operation>[]; static applyOperations(current: Batch[], editor: (ReactEditor & DevtoolsEditor) | (ReactEditor & HistoryEditor)): void; } //# sourceMappingURL=batch.d.ts.map