@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
28 lines (27 loc) • 824 B
TypeScript
/**
* @author NHN Ent. FE Development Team <dl_javascript@nhn.com>
* @fileoverview Command factory
*/
import Command from "../interface/command";
/**
* Create a command
* @param {string} name - Command name
* @param {...*} args - Arguments for creating command
* @returns {Command}
* @ignore
*/
declare function create(name: any, ...args: any[]): Command;
/**
* Register a command with name as a key
* @param {Object} command - {name:{string}, execute: {function}, undo: {function}}
* @param {string} command.name - command name
* @param {function} command.execute - executable function
* @param {function} command.undo - undo function
* @ignore
*/
declare function register(command: any): void;
declare const _default: {
create: typeof create;
register: typeof register;
};
export default _default;