UNPKG

@ideascol/cli-maker

Version:
10 lines (9 loc) 344 B
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; }