UNPKG

@cloud-copilot/cli

Version:

A standardized library for CLI building TypeScript CLI applications

17 lines 858 B
import { Argument, PerArgumentArgs } from './argument.js'; type EnumArrayType<T extends { validValues: string[]; defaultValue?: string[] | undefined; }> = T['defaultValue'] extends string[] ? T['validValues'][number] | T['defaultValue'][number] : T['validValues'][number]; type EnumArrayWithDefault = { defaultValue: string[]; validValues: string[]; } & PerArgumentArgs; type EnumArrayWithoutDefault = { defaultValue?: undefined; validValues: string[]; } & PerArgumentArgs; export declare function enumArrayArgument<const O extends EnumArrayWithDefault>(options: EnumArrayWithDefault): Argument<EnumArrayType<O>[]>; export declare function enumArrayArgument<const O extends EnumArrayWithoutDefault>(options: EnumArrayWithoutDefault): Argument<EnumArrayType<O>[] | undefined>; export {}; //# sourceMappingURL=enumArrayArgument.d.ts.map