UNPKG

@donmccurdy/caporal

Version:

A full-featured framework for building command line applications (cli) with node.js

14 lines (13 loc) 353 B
/** * @packageDocumentation * @internal */ import type { ParserTypes, Argument, Option } from "../types.js"; /** * Validate using a RegExp * * @param validator * @param value * @ignore */ export declare function validateWithRegExp(validator: RegExp, value: ParserTypes | ParserTypes[], context: Argument | Option): ParserTypes | ParserTypes[];