Initial commit
This commit is contained in:
27
node_modules/getopts/index.d.ts
generated
vendored
Executable file
27
node_modules/getopts/index.d.ts
generated
vendored
Executable file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* @param argv Arguments to parse.
|
||||
* @param options Parsing options (configuration).
|
||||
* @returns The parsed arguments.
|
||||
*/
|
||||
declare function getopts(
|
||||
argv: string[],
|
||||
options?: getopts.Options
|
||||
): getopts.ParsedOptions
|
||||
|
||||
export = getopts
|
||||
|
||||
declare namespace getopts {
|
||||
export interface ParsedOptions {
|
||||
_: string[]
|
||||
[key: string]: any
|
||||
}
|
||||
|
||||
export interface Options {
|
||||
alias?: { [key: string]: string | string[] }
|
||||
string?: string[]
|
||||
boolean?: string[]
|
||||
default?: { [key: string]: any }
|
||||
unknown?: (optionName: string) => boolean
|
||||
stopEarly?: boolean
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user