forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
minimist.d.ts
30 lines (26 loc) · 952 Bytes
/
minimist.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Type definitions for minimist 0.0.8
// Project: https://github.com/substack/minimist
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module 'minimist' {
function minimist(args?: string[], opts?: minimist.Opts): minimist.ParsedArgs;
module minimist {
export interface Opts {
// a string or array of strings argument names to always treat as strings
// string?: string;
string?: string[];
// a string or array of strings to always treat as booleans
// boolean?: string;
boolean?: string[];
// an object mapping string names to strings or arrays of string argument names to use
// alias?: {[key:string]: string};
alias?: {[key:string]: string[]};
// an object mapping string argument names to default values
default?: {[key:string]: any};
}
export interface ParsedArgs {
_: string[];
}
}
export = minimist;
}