@mezzy/commands
Version:
A luxurious user experience framework, developed by your friends at Mezzanine.
15 lines (14 loc) • 483 B
TypeScript
import { IPromise } from '@mezzy/result';
export declare class Command {
constructor(runFunction?: (...args: any[]) => any, undoFunction?: (...args: any[]) => any, scope?: any);
runFunction: (...args: any[]) => any;
undoFunction: (...args: any[]) => any;
runArgs: any[];
undoArgs: any[];
scope: any;
message: string;
readonly isEmpty: boolean;
run(...args: any[]): IPromise<any>;
undo(...args: any[]): IPromise<any>;
}
export default Command;