@ideascol/cli-maker
Version:
A simple library to help create CLIs
10 lines (9 loc) • 344 B
TypeScript
import { ParamType } from "../interfaces";
export interface ValidatorResult {
error?: string;
value?: any;
}
export declare class Validator {
validateParam(value: string | undefined, type?: ParamType, isRequired?: boolean, options?: any[], paramName?: string, hasOptionsLoader?: boolean): ValidatorResult;
private checkEmpty;
}