UNPKG

@donmccurdy/caporal

Version:

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

15 lines (14 loc) 501 B
/** * @packageDocumentation * @internal */ import { BaseError } from "../error/index.js"; import type { ParsedOptions } from "../types.js"; import type { Command } from "../command/index.js"; export declare function checkRequiredOpts(cmd: Command, opts: ParsedOptions): BaseError[]; interface OptionsValidationResult { options: ParsedOptions; errors: BaseError[]; } export declare function validateOptions(cmd: Command, options: ParsedOptions): Promise<OptionsValidationResult>; export {};