UNPKG

@donmccurdy/caporal

Version:

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

14 lines (13 loc) 376 B
/** * @packageDocumentation * @internal */ import type { ParserTypes, Argument, Option } from "../types.js"; /** * Validate using an array of valid values. * * @param validator * @param value * @ignore */ export declare function validateWithArray(validator: ParserTypes[], value: ParserTypes | ParserTypes[], context: Argument | Option): ParserTypes | ParserTypes[];