Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit b07f944

Browse files
authored
chore: add @types/yargs for better inference (#3357)
This was prompted by #3353. I am guessing that something end up pulling old version of `@types/yargs` that was unaware of `onFinishCommand`. This pull explicitly adds latest `@types/yargs` into `ipfs-cli` dev dependencies which: 1. Seems to be aware of `onFinishCommand`. 2. Makes ipfs-cli aware of yargs interface, which without this just appears as `any`.
1 parent 16ecc74 commit b07f944

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/ipfs-cli/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383
"string-argv": "^0.3.1",
8484
"temp-write": "^4.0.0",
8585
"typescript": "^4.0.3",
86-
"wrtc": "^0.4.6"
86+
"wrtc": "^0.4.6",
87+
"@types/yargs": "^15.0.9"
8788
},
8889
"optionalDependencies": {
8990
"prom-client": "^12.0.0",

packages/ipfs-cli/src/parser.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict'
22

3-
// @ts-ignore
43
const yargs = require('yargs/yargs')(process.argv.slice(2))
54
const utils = require('./utils')
65

0 commit comments

Comments
 (0)