mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-24 13:59:25 +08:00
Fix minimist.Opts.alias possible values (to match minimist docs/functionality)
This commit is contained in:
7
minimist/minimist.d.ts
vendored
7
minimist/minimist.d.ts
vendored
@@ -9,20 +9,17 @@ declare module 'minimist' {
|
||||
module minimist {
|
||||
export interface Opts {
|
||||
// a string or array of strings argument names to always treat as strings
|
||||
// string?: string;
|
||||
string?: string|string[];
|
||||
// a string or array of strings to always treat as booleans
|
||||
// boolean?: string;
|
||||
boolean?: boolean|string|string[];
|
||||
// an object mapping string names to strings or arrays of string argument names to use
|
||||
// alias?: {[key:string]: string};
|
||||
alias?: {[key:string]: string[]};
|
||||
alias?: {[key:string]: string|string[]};
|
||||
// an object mapping string argument names to default values
|
||||
default?: {[key:string]: any};
|
||||
// when true, populate argv._ with everything after the first non-option
|
||||
stopEarly?: boolean;
|
||||
// a function which is invoked with a command line parameter not defined in the opts configuration object.
|
||||
// If the function returns false, the unknown option is not added to argv
|
||||
// If the function returns false, the unknown option is not added to argv
|
||||
unknown?: (arg: string) => boolean;
|
||||
// when true, populate argv._ with everything before the -- and argv['--'] with everything after the --
|
||||
'--'?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user