Skip to content

Commit

Permalink
fix(typescript): yargs-parser was breaking @types/yargs (#1745)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Sep 9, 2020
1 parent e3fdd3d commit 2253284
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/typings/common-types.ts
@@ -1,4 +1,4 @@
import { Parser } from 'yargs-parser/build/lib/yargs-parser-types.d.js'
import { Parser } from './yargs-parser-types.js'

/**
* An object whose all properties have the same type.
Expand Down
2 changes: 1 addition & 1 deletion lib/usage.ts
Expand Up @@ -4,7 +4,7 @@ import { Dictionary, assertNotStrictEqual, PlatformShim, Y18N } from './typings/
import { objFilter } from './utils/obj-filter.js'
import { YargsInstance } from './yargs-factory.js'
import { YError } from './yerror.js'
import { DetailedArguments } from 'yargs-parser/build/lib/yargs-parser-types.js'
import { DetailedArguments } from './typings/yargs-parser-types.js'
import setBlocking from './utils/set-blocking.js'

export function usage (yargs: YargsInstance, y18n: Y18N, shim: PlatformShim) {
Expand Down
2 changes: 1 addition & 1 deletion lib/validation.ts
Expand Up @@ -4,7 +4,7 @@ import { levenshtein as distance } from './utils/levenshtein.js'
import { objFilter } from './utils/obj-filter.js'
import { UsageInstance } from './usage.js'
import { YargsInstance, Arguments } from './yargs-factory.js'
import { DetailedArguments } from 'yargs-parser/build/lib/yargs-parser-types.js'
import { DetailedArguments } from './typings/yargs-parser-types.js'

const specialKeys = ['$0', '--', '_']

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -42,7 +42,7 @@
"require-directory": "^2.1.1",
"string-width": "^4.2.0",
"y18n": "^5.0.1",
"yargs-parser": "^19.0.4"
"yargs-parser": "^20.0.0"
},
"devDependencies": {
"@types/chai": "^4.2.11",
Expand Down

0 comments on commit 2253284

Please sign in to comment.