UNPKG

675 BTypeScriptView Raw
1import { CommandArg } from '../Contracts';
2export declare const args: {
3 /**
4 * Define argument that accepts string value
5 */
6 string(options?: Partial<Omit<CommandArg, "type" | "propertyName">> | undefined): <TKey extends string, TTarget extends { [K in TKey]?: string | undefined; }>(target: TTarget, propertyName: TKey) => void;
7 /**
8 * Define argument that accepts multiple values. Must be
9 * the last argument.
10 */
11 spread(options?: Partial<Omit<CommandArg, "type" | "propertyName">> | undefined): <TKey_1 extends string, TTarget_1 extends { [K_1 in TKey_1]?: string[] | undefined; }>(target: TTarget_1, propertyName: TKey_1) => void;
12};