import { Api, Command, CommandOptions } from './definition'; export interface CommandErrorProps { command: Command; message?: string; } export interface CommandError
{
readonly props: P;
new (props: P): this;
print(): void;
toString(): string;
}
export interface TypeErrorProps extends CommandErrorProps {
/**
* - name of param
* - one of command.options
* - index of command.options
* @format :`${param} should be ${type}, but got ${value}`
*/
param: string | CommandOptions | number;
type?: string | string[];
value?: any;
}
export interface CreateErrorReturn {
CommandError: CommandError