undo-redo-vuex
Version:
A Vuex plugin for module namespaced undo and redo functionality. This plugin takes inspiration from and extends the work of [vuex-undo-redo](https://github.com/anthonygore/vuex-undo-redo).
20 lines (17 loc) • 378 B
TypeScript
declare interface UndoRedoOptions {
namespace?: string;
ignoreMutations?: Array<string>;
paths?: Array<UndoRedoOptions>;
newMutation?: boolean;
done?: Array<Mutation> | [];
undone?: Array<Mutation> | [];
exposeUndoRedoConfig?: boolean;
}
declare interface Mutation {
type: string;
payload: any;
}
declare interface Action {
type: string;
payload: any;
}