@donmccurdy/caporal
Version:
A full-featured framework for building command line applications (cli) with node.js
14 lines (13 loc) • 376 B
TypeScript
/**
* @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[];