Navigation Menu

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

Add chrome.runtime.openOptionsPage to @types/sinon-chrome #44704

Merged
merged 2 commits into from May 19, 2020

Conversation

pedrovieira
Copy link
Contributor

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).

Select one of these and delete the others:

If changing an existing definition:

  • Provide a URL to documentation or source code which provides context for the suggested changes: https://developer.chrome.com/extensions/runtime#method-openOptionsPage
  • 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
Copy link
Contributor

typescript-bot commented May 13, 2020

@pedrovieira Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 - keep an eye on this comment as I'll be updating it with information as things progress.

Code Reviews

Because you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.

Status

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

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": 44704,
  "author": "pedrovieira",
  "owners": [
    "pimterry",
    "crimx",
    "kobanyan"
  ],
  "dangerLevel": "ScopedAndTested",
  "headCommitAbbrOid": "cfca209",
  "headCommitOid": "cfca2098d07e825ffc896245415ded04eabc990f",
  "mergeIsRequested": false,
  "stalenessInDays": 5,
  "lastCommitDate": "2020-05-13T20:26:21.000Z",
  "lastCommentDate": "2020-05-13T20:26:21.000Z",
  "reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44704/files",
  "hasMergeConflict": false,
  "authorIsOwner": false,
  "isFirstContribution": true,
  "popularityLevel": "Well-liked by everyone",
  "anyPackageIsNew": false,
  "packages": [
    "sinon-chrome"
  ],
  "files": [
    {
      "filePath": "types/sinon-chrome/index.d.ts",
      "kind": "definition",
      "package": "sinon-chrome"
    },
    {
      "filePath": "types/sinon-chrome/sinon-chrome-tests.ts",
      "kind": "test",
      "package": "sinon-chrome"
    }
  ],
  "hasDismissedReview": false,
  "travisResult": "pass",
  "reviewersWithStaleReviews": [],
  "approvalFlags": 0,
  "isChangesRequested": false
}

@typescript-bot
Copy link
Contributor

🔔 @pimterry @crimx @kobanyan - 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 typescript-bot moved this from Other to Waiting for Code Reviews in New Pull Request Status Board May 13, 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 #44704 diff
Batch compilation
Memory usage (MiB) 84.0 92.4 +10.0%
Type count 13742 13743 0%
Assignability cache size 35415 35415 0%
Language service
Samples taken 132 138 +5%
Identifiers in tests 132 138 +5%
getCompletionsAtPosition
    Mean duration (ms) 477.4 478.1 +0.1%
    Mean CV 10.0% 9.2%
    Worst duration (ms) 586.1 595.8 +1.7%
    Worst identifier value chromeStub
getQuickInfoAtPosition
    Mean duration (ms) 475.3 479.2 +0.8%
    Mean CV 9.7% 9.4% -2.9%
    Worst duration (ms) 610.0 587.1 -3.8%
    Worst identifier domain chromeStub

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 May 13, 2020
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in New Pull Request Status Board May 18, 2020
@sheetalkamat sheetalkamat merged commit 445e53d into DefinitelyTyped:master May 19, 2020
@typescript-bot typescript-bot removed this from Needs Maintainer Review in New Pull Request Status Board May 19, 2020
jjballano-qatium pushed a commit to jjballano-qatium/DefinitelyTyped that referenced this pull request Jun 16, 2020
…Typed#44704)

* Add "openOptionsPage" to "sinon-chrome"

* Add another test line

Co-authored-by: Pedro Vieira <pevieira@microsoft.com>
ngbrown pushed a commit to ngbrown-forks/DefinitelyTyped that referenced this pull request Jul 11, 2020
…Typed#44704)

* Add "openOptionsPage" to "sinon-chrome"

* Add another test line

Co-authored-by: Pedro Vieira <pevieira@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants