UNPKG

@dineug/erd-editor

Version:

Entity-Relationship Diagram Editor

10 lines (9 loc) 624 B
import { AnyAction } from '@dineug/r-html'; import { History } from './history'; import { RootState } from './state'; import { Store } from './store'; export type PushUndoHistory = (undoActions: AnyAction[], action: AnyAction, state: RootState) => void; export type PushStreamHistory = (undoActions: AnyAction[], redoActions: AnyAction[], actions: AnyAction[]) => void; export declare const pushUndoHistoryMap: Record<string, PushUndoHistory>; export declare const pushStreamHistoryMap: Record<string, PushStreamHistory>; export declare const pushHistory: (store: Store, history: History) => (actions: AnyAction[]) => void;