@cloud-copilot/cli
Version:
A standardized library for CLI building TypeScript CLI applications
15 lines • 712 B
TypeScript
import { Argument, PerArgumentArgs, ValidatedValues } from './argument.js';
type ArrayValueValidator<ValueType> = (rawValue: string) => Promise<ValidatedValues<ValueType>> | ValidatedValues<ValueType>;
/**
* Creates an array value argument factory for a specific type
*/
export declare function arrayValueArgument<ValueType>(validator: ArrayValueValidator<ValueType>, descriptionSuffix?: string): {
<const O extends {
defaultValue: ValueType[];
} & PerArgumentArgs>(options: O): Argument<ValueType[]>;
<const O extends {
defaultValue?: undefined;
} & PerArgumentArgs>(options: O): Argument<ValueType[] | undefined>;
};
export {};
//# sourceMappingURL=arrayValueArgument.d.ts.map