-
Notifications
You must be signed in to change notification settings - Fork 30
Use @types/yargs
#120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use @types/yargs
#120
Conversation
Codecov Report
@@ Coverage Diff @@
## master #120 +/- ##
=======================================
Coverage 99.45% 99.45%
=======================================
Files 15 15
Lines 369 369
Branches 42 42
=======================================
Hits 367 367
Partials 2 2
Continue to review full report at Codecov.
|
| private context: any; | ||
| private configuration: ConfigurationHelper; | ||
| run(group: string, commandName?: string, args?: yargs.Argv): Promise<any> { | ||
| run(group: string, commandName?: string, args?: any): Promise<any> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't this become Argv ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No because what was Yargs is now Argv and the typing for what was Argv is now any.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did mention this in the description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that now.
|
@agubler any reason to not land this after a rebase? |
|
@dylans just the fact that the typings don't seem to be quite as good. Also it's a breaking change as we'd need to convert all the commands. |
Type: feature
The following has been addressed in the PR:
Description:
Convert to use @types/yargs.
Discussion as we do lose the typings for
Argvthat seem to be typed asanyin the latest yarg types from @types.Resolves #119