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

Fixed the electron-positioner type when a type of position is Position | TrayPosition #57385

Merged

Conversation

ktmouk
Copy link
Contributor

@ktmouk ktmouk commented Nov 26, 2021

I'm sorry but the PR I requested was a bit incorrect.

If thetrayBounds argument is passed, no type error should occur regardless of whether the type of position is Position nor TrayPosition. But the previous PR is wasn't.

a type error has occurred.

Select one of these and delete the others:

If adding a new definition:

  • The package does not already provide its own types, or cannot have its .d.ts files generated via --declaration
  • If this is for an npm package, match the name. If not, do not conflict with the name of an npm package.
  • Create it with dts-gen --dt, not by basing it on an existing project.
  • Represents shape of module/library correctly
  • tslint.json should contain { "extends": "dtslint/dt.json" }, and no additional rules.
  • tsconfig.json should have noImplicitAny, noImplicitThis, strictNullChecks, and strictFunctionTypes set to true.

If changing an existing definition:

If removing a declaration:

  • If a package was never on Definitely Typed, you don't need to do anything. (If you wrote a package and provided types, you don't need to register it with us.)
  • Delete the package's directory.
  • Add it to notNeededPackages.json.

@ktmouk ktmouk changed the title Fixed electron-positioner type when position is Position or TrayPosition Fixed electron-positioner type when position is Position | TrayPosition Nov 26, 2021
@typescript-bot
Copy link
Contributor

typescript-bot commented Nov 26, 2021

@ktmouk Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

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.

You can test the changes of this PR in the Playground.

Status

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

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 57385,
  "author": "ktmouk",
  "headCommitOid": "ab9ad1cfa8d56de4d303a85a8e228914b760faef",
  "lastPushDate": "2021-11-26T15:04:25.000Z",
  "lastActivityDate": "2021-12-16T02:28:06.000Z",
  "mergeOfferDate": "2021-12-15T19:11:10.000Z",
  "mergeRequestDate": "2021-12-16T02:28:06.000Z",
  "mergeRequestUser": "ktmouk",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": "electron-positioner",
      "kind": "edit",
      "files": [
        {
          "path": "types/electron-positioner/electron-positioner-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/electron-positioner/index.d.ts",
          "kind": "definition"
        }
      ],
      "owners": [
        "ktmouk"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "gabritto",
      "date": "2021-12-15T19:10:29.000Z",
      "isMaintainer": true
    }
  ],
  "mainBotCommentID": 980034652,
  "ciResult": "pass"
}

@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. labels Nov 26, 2021
@typescript-bot
Copy link
Contributor

🔔 @ktmouk — 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 added this to Waiting for Code Reviews in New Pull Request Status Board Nov 26, 2021
@ktmouk ktmouk force-pushed the fix-electron-positioner-tray-pos branch from 1408567 to ab9ad1c Compare November 26, 2021 15:04
@typescript-bot
Copy link
Contributor

Re-ping @«anyone?»:

This PR has been out for over a week, yet I haven't seen any reviews.

Could someone please give it some attention? Thanks!

@typescript-bot typescript-bot added the Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. label Dec 7, 2021
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Action in New Pull Request Status Board Dec 15, 2021
@typescript-bot
Copy link
Contributor

It has been more than two weeks and this PR still has no reviews.

I'll bump it to the DT maintainer queue. Thank you for your patience, @ktmouk.

(Ping @«anyone?».)

@ktmouk ktmouk changed the title Fixed electron-positioner type when position is Position | TrayPosition Fixed the electron-positioner type when a type of position is Position | TrayPosition Dec 15, 2021
@ktmouk
Copy link
Contributor Author

ktmouk commented Dec 15, 2021

@gabritto I'm sorry to trouble you, but could you review this PR?

@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner and removed Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. labels Dec 15, 2021
@typescript-bot
Copy link
Contributor

@ktmouk: Everything looks good here. I am ready to merge this PR (at ab9ad1c) on your behalf whenever you think it's ready.

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! ❤️

@typescript-bot typescript-bot moved this from Needs Maintainer Action to Waiting for Author to Merge in New Pull Request Status Board Dec 15, 2021
@ktmouk
Copy link
Contributor Author

ktmouk commented Dec 16, 2021

Ready to merge

@typescript-bot typescript-bot moved this from Waiting for Author to Merge to Recently Merged in New Pull Request Status Board Dec 16, 2021
@typescript-bot typescript-bot merged commit 26df2ff into DefinitelyTyped:master Dec 16, 2021
@ktmouk ktmouk deleted the fix-electron-positioner-tray-pos branch December 16, 2021 02:29
@typescript-bot typescript-bot removed this from Recently Merged in New Pull Request Status Board Dec 16, 2021
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. Maintainer Approved No Other Owners This DT module only has one owner, so we can't have someone verify the change. 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

3 participants