Skip to content

Commit

Permalink
deps(typescript): upgrade to typescript@4.x (#1728)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Aug 27, 2020
1 parent bad6f76 commit 60234a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/command.ts
Expand Up @@ -347,7 +347,7 @@ export function command (
options.alias[key] = (options.alias[key] || []).concat(parseOptions.alias[key])
}
options.array = options.array.concat(parseOptions.array)
delete options.config // don't load config when processing positionals.
options.config = {} // don't load config when processing positionals.

const unparsed: string[] = []
Object.keys(positionalMap).forEach((key) => {
Expand Down
2 changes: 1 addition & 1 deletion lib/typings/yargs-parser-types.ts
Expand Up @@ -104,7 +104,7 @@ export interface Options {
/** Provide default values for keys: `{ default: { x: 33, y: 'hello world!' } }`. */
default: Dictionary<any>;
/** Environment variables (`process.env`) with the prefix provided should be parsed. */
envPrefix: string;
envPrefix?: string;
/** Specify that a key requires n arguments: `{ narg: {x: 2} }`. */
narg: Dictionary<number>;
/** `path.normalize()` will be applied to values set to this key. */
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -63,7 +63,7 @@
"rollup": "^2.23.0",
"rollup-plugin-cleanup": "^3.1.1",
"standardx": "^5.0.0",
"typescript": "^3.7.0",
"typescript": "^4.0.2",
"which": "^2.0.0",
"yargs-test-extends": "^1.0.1"
},
Expand Down

0 comments on commit 60234a4

Please sign in to comment.