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

[yargs] Add .strictCommands definition to yargs typing. #46984

Closed
wants to merge 1 commit into from
Closed

[yargs] Add .strictCommands definition to yargs typing. #46984

wants to merge 1 commit into from

Conversation

catdadcode
Copy link

Please fill in this template.

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Test the change in your own code. (Compile and run.)
  • Add or edit tests to reflect the change. (Run with npm test.)
  • Follow the advice from the readme.
  • Avoid common mistakes.
  • Run npm run lint package-name (or tsc if no tslint.json is present).

If changing an existing definition:

  • Provide a URL to documentation or source code which provides context for the suggested changes: https://yargs.js.org/docs/#api-reference-strictcommandsenabledtrue
  • If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the header.
  • Include tests for your changes
  • If you are making substantial changes, consider adding a tslint.json containing { "extends": "dtslint/dt.json" }. If for reason the any rule need to be disabled, disable it for that line using // tslint:disable-next-line [ruleName] and not for whole package so that the need for disabling can be reviewed.

@typescript-bot typescript-bot added Critical package Untested Change This PR does not touch tests labels Aug 23, 2020
@typescript-bot typescript-bot added this to Waiting for Code Reviews in New Pull Request Status Board Aug 23, 2020
@typescript-bot
Copy link
Contributor

typescript-bot commented Aug 23, 2020

@Chevtek Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through.

This is a live comment which I will keep updated.

This PR doesn't modify any tests, so it's hard to know what's being fixed, and your changes might regress in the future. Have you considered adding tests to cover the change you're making? Including tests allows this PR to be merged by yourself and the owners of this module. This can potentially save days of time for you.

1 package in this PR

Code Reviews

This PR can be merged once it's reviewed.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ❌ Most recent commit is approved by type definition owners or DT maintainers

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.

Inactive

This PR has been inactive for 31 days — it is considered abandoned!


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 46984,
  "author": "chevtek",
  "headCommitAbbrOid": "04c6dad",
  "headCommitOid": "04c6dad015d31155500225b05a8e61b9947813e6",
  "mergeIsRequested": true,
  "stalenessInDays": 31,
  "lastPushDate": "2020-08-23T08:53:53.000Z",
  "lastCommentDate": "2020-10-10T20:10:31.000Z",
  "maintainerBlessed": true,
  "hasMergeConflict": false,
  "isFirstContribution": true,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "yargs",
      "files": [
        {
          "path": "types/yargs/index.d.ts",
          "kind": "definition"
        }
      ],
      "owners": [
        "poelstra",
        "mizunashi-mana",
        "pushplay",
        "JimiC",
        "steffenvv",
        "forivall",
        "ExE-Boss",
        "Aankhen"
      ],
      "addedOwners": [
        "jeffkenney"
      ],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "NathanYocum",
      "date": "2020-09-22T17:29:59.000Z",
      "isMaintainer": false
    },
    {
      "type": "approved",
      "reviewer": "kirintwn",
      "date": "2020-09-08T06:49:35.000Z",
      "isMaintainer": false
    }
  ],
  "ciResult": "pass"
}

@typescript-bot
Copy link
Contributor

typescript-bot commented Aug 23, 2020

🔔 @poelstra @mizunashi-mana @pushplay @JimiC @steffenvv @forivall @ExE-Boss @Aankhen — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@typescript-bot
Copy link
Contributor

👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings.

Let’s review the numbers, shall we?

Comparison details 📊
master #46984 diff
Batch compilation
Memory usage (MiB) 78.5 81.2 +3.4%
Type count 16091 16094 0%
Assignability cache size 2779 2780 0%
Language service
Samples taken 1503 1503 0%
Identifiers in tests 1503 1503 0%
getCompletionsAtPosition
    Mean duration (ms) 378.8 378.2 -0.2%
    Mean CV 7.7% 7.6%
    Worst duration (ms) 610.4 597.5 -2.1%
    Worst identifier arg arg
getQuickInfoAtPosition
    Mean duration (ms) 373.6 373.5 0.0%
    Mean CV 7.2% 7.3% +1.7%
    Worst duration (ms) 580.7 577.1 -0.6%
    Worst identifier argv2 argv2

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

@typescript-bot typescript-bot added the Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. label Aug 23, 2020
@elibarzilay elibarzilay moved this from Needs Maintainer Review to Waiting for Code Reviews in New Pull Request Status Board Aug 26, 2020
Copy link

@kirintwn kirintwn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@typescript-bot typescript-bot added the Other Approved This PR was reviewed and signed-off by a community member. label Sep 8, 2020
@pushplay
Copy link
Contributor

pushplay commented Oct 8, 2020

This has been approved for a while. Is there any reason this shouldn't go out?

@catdadcode
Copy link
Author

Is there something else I need to do?

@pushplay
Copy link
Contributor

pushplay commented Oct 8, 2020

Not as far as I can tell. It's just been stuck in this state for a while and I'm not sure why. Let's see if this works...

@pushplay
Copy link
Contributor

pushplay commented Oct 8, 2020

Ready to merge

@pushplay
Copy link
Contributor

pushplay commented Oct 8, 2020

Well that worked in #47867 so 🤷

@forivall
Copy link
Contributor

@pushplay it has the "untested change" label on it, you need to modify the tests file i think

@typescript-bot typescript-bot added the Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. label Oct 18, 2020
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in New Pull Request Status Board Oct 18, 2020
@typescript-bot
Copy link
Contributor

@Chevtek Unfortunately, this pull request currently has a merge conflict 😥. Please update your PR branch to be up-to-date with respect to master. Have a nice day!

@typescript-bot typescript-bot removed the Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. label Oct 19, 2020
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in New Pull Request Status Board Oct 19, 2020
@typescript-bot typescript-bot added the Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. label Oct 20, 2020
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in New Pull Request Status Board Oct 20, 2020
@typescript-bot typescript-bot removed the Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. label Oct 20, 2020
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in New Pull Request Status Board Oct 20, 2020
@typescript-bot typescript-bot added the Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. label Oct 23, 2020
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in New Pull Request Status Board Oct 23, 2020
@typescript-bot typescript-bot removed the Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. label Oct 24, 2020
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in New Pull Request Status Board Oct 24, 2020
@typescript-bot typescript-bot added the Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. label Oct 25, 2020
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in New Pull Request Status Board Oct 25, 2020
@typescript-bot typescript-bot removed the Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. label Oct 26, 2020
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in New Pull Request Status Board Oct 26, 2020
@typescript-bot typescript-bot added the Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. label Nov 3, 2020
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in New Pull Request Status Board Nov 3, 2020
@typescript-bot
Copy link
Contributor

@Chevtek I haven't seen any activity on this PR in more than 3 weeks, and this PR currently has problems that prevent it from being merged. The PR will be closed in a week if the issues aren't addressed.

@typescript-bot typescript-bot removed the Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. label Nov 5, 2020
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in New Pull Request Status Board Nov 5, 2020
@typescript-bot typescript-bot added the Abandoned This PR had no activity for a long time, and is considered abandoned label Nov 11, 2020
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Action in New Pull Request Status Board Nov 11, 2020
@weswigham
Copy link
Contributor

weswigham commented Nov 11, 2020

Hm, since this has a merge conflict, I'm going to close this PR. Feel free to open a new one if this change is still needed (since the process clearly got borked on this one).

@weswigham weswigham closed this Nov 11, 2020
@typescript-bot typescript-bot removed this from Needs Maintainer Action in New Pull Request Status Board Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Abandoned This PR had no activity for a long time, and is considered abandoned Critical package Other Approved This PR was reviewed and signed-off by a community member. Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. Untested Change This PR does not touch tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants