Skip to content
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

Set showHelp return type to never #213

Merged
merged 1 commit into from
Jun 21, 2022
Merged

Set showHelp return type to never #213

merged 1 commit into from
Jun 21, 2022

Commits on Jun 21, 2022

  1. Set showHelp return type to never

    Since `showHelp()` calls into `process.exit()`, they should use the same return type.
    The return type of `process.exit()` is `never`, not `void`. This tells the typescript compiler that code branches that have `showHelp()` terminate, and that any code written as executing after `showHelp()` should be considered dead code (similar to code after a `return` statement).
    ryanrhee authored Jun 21, 2022
    Configuration menu
    Copy the full SHA
    3f713a9 View commit details
    Browse the repository at this point in the history