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

Lots of fixes for firefox-webext-browser #46342

Merged

Conversation

jsmnbom
Copy link
Contributor

@jsmnbom jsmnbom commented Jul 25, 2020

- Fix handling of some functions with optional parameters (browser.runtime.connect, browser.alarms.create, etc, jsmnbom/definitelytyped-firefox-webext-browser#36)
- Fix a couple of return types (browser.alarms.get, browser.cookies.get, browser.cookies.remove) jsmnbom/definitelytyped-firefox-webext-browser#35
- Fix additional types from events having "Undefined in their name"
- Make "enums" with a single item not output an additional type
- Finally always use addtionaltypes for internal interfaces (with underscores in front) - this allows for using them in user code jsmnbom/definitelytyped-firefox-webext-browser#31
@typescript-bot typescript-bot added Author is Owner The author of this PR is a listed owner of the package. No Other Owners This DT module only has one owner, so we can't have someone verify the change. Check Config Changes a module config files labels Jul 25, 2020
@typescript-bot typescript-bot added this to Waiting for Code Reviews in New Pull Request Status Board Jul 25, 2020
@typescript-bot
Copy link
Contributor

typescript-bot commented Jul 25, 2020

@jsmnbom Thank you for submitting this PR!

This is a live comment which I will keep updated.

Code Reviews

There aren't any other owners of this package, so a DT maintainer will review it.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ A DT maintainer can merge changes when there are no other reviewers

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


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 46342,
  "author": "jsmnbom",
  "owners": [
    "jsmnbom"
  ],
  "dangerLevel": "ScopedAndConfiguration",
  "headCommitAbbrOid": "deedf99",
  "headCommitOid": "deedf9984d04ea63bd33048214e8b8a8d72447dc",
  "mergeIsRequested": true,
  "stalenessInDays": 0,
  "lastPushDate": "2020-07-25T14:31:03.000Z",
  "lastCommentDate": "2020-07-28T22:16:03.000Z",
  "maintainerBlessed": false,
  "reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/46342/files",
  "hasMergeConflict": false,
  "authorIsOwner": true,
  "isFirstContribution": false,
  "popularityLevel": "Well-liked by everyone",
  "anyPackageIsNew": false,
  "packages": [
    "firefox-webext-browser"
  ],
  "files": [
    {
      "path": "types/firefox-webext-browser/firefox-webext-browser-tests.ts",
      "kind": "test",
      "package": "firefox-webext-browser"
    },
    {
      "path": "types/firefox-webext-browser/index.d.ts",
      "kind": "definition",
      "package": "firefox-webext-browser"
    },
    {
      "path": "types/firefox-webext-browser/tslint.json",
      "kind": "package-meta",
      "package": "firefox-webext-browser",
      "suspect": "not the required form"
    }
  ],
  "hasDismissedReview": false,
  "ciResult": "pass",
  "lastReviewDate": "2020-07-28T21:56:23.000Z",
  "reviewersWithStaleReviews": [],
  "approvalFlags": 5,
  "isChangesRequested": false
}

@typescript-bot
Copy link
Contributor

🔔 @jsmnbom — you're the only owner, but it would still be good if you find someone to review this PR in the next few days, otherwise a maintainer will look at it. (And if you do find someone, maybe even recruit them to be a second owner to make future changes easier...)

@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in New Pull Request Status Board Jul 25, 2020
@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 #46342 diff
Batch compilation
Memory usage (MiB) 81.1 79.1 -2.4%
Type count 12154 12181 0%
Assignability cache size 3572 3572 0%
Language service
Samples taken 102 164 +61%
Identifiers in tests 102 164 +61%
getCompletionsAtPosition
    Mean duration (ms) 385.8 380.4 -1.4%
    Mean CV 12.1% 10.1%
    Worst duration (ms) 464.1 459.0 -1.1%
    Worst identifier error runtime
getQuickInfoAtPosition
    Mean duration (ms) 380.1 377.7 -0.6%
    Mean CV 10.2% 9.7% -4.5%
    Worst duration (ms) 462.7 454.2 -1.8%
    Worst identifier d browser

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 Jul 25, 2020
Copy link
Member

@peterblazejewicz peterblazejewicz left a comment

Choose a reason for hiding this comment

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

@jsmnbom thx for the contribution!

@typescript-bot typescript-bot added the Other Approved This PR was reviewed and signed-off by a community member. label Jul 25, 2020
@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner labels Jul 28, 2020
@typescript-bot typescript-bot moved this from Needs Maintainer Review to Waiting for Author to Merge in New Pull Request Status Board Jul 28, 2020
@typescript-bot
Copy link
Contributor

@jsmnbom Everything looks good here. Great job! I am ready to merge this PR on your behalf.

If you'd like that to happen, please post a comment saying:

Ready to merge

and I'll merge this PR almost instantly. Thanks for helping out! ❤️

@jsmnbom
Copy link
Contributor Author

jsmnbom commented Jul 28, 2020

Ready to merge

@typescript-bot typescript-bot moved this from Waiting for Author to Merge to Recently Merged in New Pull Request Status Board Jul 28, 2020
@typescript-bot typescript-bot merged commit 4601622 into DefinitelyTyped:master Jul 28, 2020
@typescript-bot
Copy link
Contributor

I just published @types/firefox-webext-browser@78.0.1 to npm.

@typescript-bot typescript-bot removed this from Recently Merged in New Pull Request Status Board Jul 29, 2020
astorije pushed a commit to astorije/DefinitelyTyped that referenced this pull request Jul 30, 2020
…wser by @jsmnbom

- Fix handling of some functions with optional parameters (browser.runtime.connect, browser.alarms.create, etc, jsmnbom/definitelytyped-firefox-webext-browser#36)
- Fix a couple of return types (browser.alarms.get, browser.cookies.get, browser.cookies.remove) jsmnbom/definitelytyped-firefox-webext-browser#35
- Fix additional types from events having "Undefined in their name"
- Make "enums" with a single item not output an additional type
- Finally always use addtionaltypes for internal interfaces (with underscores in front) - this allows for using them in user code jsmnbom/definitelytyped-firefox-webext-browser#31
danielrearden pushed a commit to danielrearden/DefinitelyTyped that referenced this pull request Sep 22, 2020
…wser by @jsmnbom

- Fix handling of some functions with optional parameters (browser.runtime.connect, browser.alarms.create, etc, jsmnbom/definitelytyped-firefox-webext-browser#36)
- Fix a couple of return types (browser.alarms.get, browser.cookies.get, browser.cookies.remove) jsmnbom/definitelytyped-firefox-webext-browser#35
- Fix additional types from events having "Undefined in their name"
- Make "enums" with a single item not output an additional type
- Finally always use addtionaltypes for internal interfaces (with underscores in front) - this allows for using them in user code jsmnbom/definitelytyped-firefox-webext-browser#31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author is Owner The author of this PR is a listed owner of the package. Check Config Changes a module config files Maintainer Approved No Other Owners This DT module only has one owner, so we can't have someone verify the change. 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. Self Merge This PR can now be self-merged by the PR author or an owner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants