xenforo-dl
Version:
XenForo Forum Downloader
9 lines • 625 B
TypeScript
import { CLIOptionParserEntry } from './CLIOptions.js';
export default class CLIOptionValidator {
static validateRequired(entry?: CLIOptionParserEntry, errMsg?: string): string;
static validateString<T extends string[]>(entry?: CLIOptionParserEntry, ...match: T): T[number] | undefined;
static validateBoolean(entry?: CLIOptionParserEntry): boolean | undefined;
static validateNumber(entry?: CLIOptionParserEntry, min?: number, max?: number): number | undefined;
static validateFlags(entry?: CLIOptionParserEntry, ...match: string[]): string | undefined;
}
//# sourceMappingURL=CLIOptionValidator.d.ts.map