UNPKG

532 BTypeScriptView Raw
1import { ParserErrors as IParserErrors, ParserErrorType } from './types';
2export declare class ParserErrors implements IParserErrors {
3 private _errors;
4 get commandErrors(): string[];
5 get argumentErrors(): string[];
6 get optionErrors(): string[];
7 get allErrors(): string[];
8 getErrors: (type?: ParserErrorType) => string[];
9 clearErrors: (type?: ParserErrorType) => void;
10 push: (type: ParserErrorType, message: string) => void;
11 get hasErrors(): boolean;
12 get hasNonArgOrOptionErrors(): boolean;
13}