fix history (#1009)

* fix history

* tweak withBatchedUpdates typing
This commit is contained in:
David Luzar
2020-03-19 14:51:05 +01:00
committed by GitHub
parent ca5f37850e
commit 82ce068972
16 changed files with 86 additions and 80 deletions

View File

@ -5,6 +5,7 @@ import { AppState } from "../types";
export type ActionResult = {
elements?: readonly ExcalidrawElement[] | null;
appState?: AppState | null;
commitToHistory: boolean;
};
type ActionFn = (
@ -32,10 +33,6 @@ export interface Action {
) => boolean;
contextItemLabel?: string;
contextMenuOrder?: number;
commitToHistory?: (
appState: AppState,
elements: readonly ExcalidrawElement[],
) => boolean;
}
export interface ActionsManagerInterface {