UNPKG

@cloud-copilot/cli

Version:

A standardized library for CLI building TypeScript CLI applications

17 lines 792 B
import { Argument, PerArgumentArgs, ValidatedValues } from './argument.js'; type ArrayValueValidator<ValueType> = (rawValue: string) => Promise<ValidatedValues<ValueType>> | ValidatedValues<ValueType>; type ArrayWithDefault<ValueType> = { defaultValue: ValueType[]; } & PerArgumentArgs; type ArrayWithoutDefault<ValueType> = { defaultValue?: undefined; } & PerArgumentArgs; /** * Creates an array value argument factory for a specific type */ export declare function arrayValueArgument<ValueType>(validator: ArrayValueValidator<ValueType>, descriptionSuffix?: string): { (options: ArrayWithDefault<ValueType>): Argument<ValueType[]>; (options: ArrayWithoutDefault<ValueType>): Argument<ValueType[] | undefined>; }; export {}; //# sourceMappingURL=arrayValueArgument.d.ts.map