UNPKG

538 BTypeScriptView Raw
1export interface IValidate {
2 (args: object): object;
3}
4export interface IAction {
5 (args: object): object;
6}
7export interface ICommandArgs {
8 params: string[];
9 options: object;
10}
11export interface IValidate {
12 (args: ICommandArgs): ICommandArgs | undefined;
13}
14export interface IAction {
15 (args: ICommandArgs): Promise<any> | undefined;
16}
17export interface ICommand {
18 name: string;
19 alias: string[];
20 description?: string;
21 group?: string;
22 args?: object;
23 validate?: IValidate;
24 action: IAction;
25}