UNPKG

545 BTypeScriptView Raw
1declare module 'command-line-usage' {
2 module commandLineUsage {
3 interface ArgDescriptor {
4 name: string;
5 alias?: string;
6 description?: string;
7 defaultValue?: any;
8 type?: Object;
9 multiple?: boolean;
10 defaultOption?: boolean;
11 group?: string;
12 }
13 interface UsageGroup {
14 header?: string;
15 content?: any;
16 optionList?: ArgDescriptor[];
17 raw?: boolean;
18 }
19 }
20
21 function commandLineUsage(groups: commandLineUsage.UsageGroup[]): string;
22
23 export = commandLineUsage;
24}