UNPKG

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