UNPKG

556 BTypeScriptView Raw
1export type ProxyFlags = {
2 name?: string;
3 required?: number;
4};
5/**
6 * Used to annotate that the command wants to retrieve all trailing
7 * arguments that cannot be tied to a declared option.
8 *
9 * Be careful: this function is order-dependent! Make sure to define it
10 * after any positional argument you want to declare.
11 *
12 * This function is mutually exclusive with Option.Rest.
13 *
14 * @example
15 * yarn run foo hello --foo=bar world
16 * ► proxy = ["hello", "--foo=bar", "world"]
17 */
18export declare function Proxy(opts?: ProxyFlags): string[];