-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.d.ts
37 lines (34 loc) · 855 Bytes
/
index.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
31
32
33
34
35
36
37
// Import the function like
// import getOpts = require("get-options");
// If you need the types you can import them like normal
// import { Options } from "get-options";
/**
* Extract command-line options from a list of strings.
*/
declare function getOpts(
input: any[],
optdef?: string | { [key: string]: string },
config?: getOpts.Config
): getOpts.Options;
export = getOpts;
declare namespace getOpts {
export type Options = { options: any; argv: string[] };
export type Config = {
noAliasPropagation?: boolean | "first-only";
noCamelCase?: boolean;
noBundling?: boolean;
noMixedOrder?: boolean;
noUndefined?: boolean;
ignoreEquals?: boolean;
terminator?: string | RegExp;
duplicates?:
| "use-first"
| "use-last"
| "limit-first"
| "limit-last"
| "error"
| "append"
| "stack"
| "stack-values";
};
}