-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Fixed the electron-positioner type when a type of position is Position | TrayPosition
#57385
Conversation
Position | TrayPosition
@ktmouk Thank you for submitting this PR! This is a live comment which I will keep updated. 1 package in this PRCode ReviewsBecause 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
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"
} |
🔔 @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...) |
1408567
to
ab9ad1c
Compare
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! |
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?».) |
Position | TrayPosition
Position | TrayPosition
@gabritto I'm sorry to trouble you, but could you review this PR? |
@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:
and I'll merge this PR almost instantly. Thanks for helping out! ❤️ |
Ready to merge |
I'm sorry but the PR I requested was a bit incorrect.
If the
trayBounds
argument is passed, no type error should occur regardless of whether the type ofposition
isPosition
norTrayPosition
. But the previous PR is wasn't.a type error has occurred.
npm test <package to test>
.Select one of these and delete the others:
If adding a new definition:
.d.ts
files generated via--declaration
dts-gen --dt
, not by basing it on an existing project.tslint.json
should contain{ "extends": "dtslint/dt.json" }
, and no additional rules.tsconfig.json
should havenoImplicitAny
,noImplicitThis
,strictNullChecks
, andstrictFunctionTypes
set totrue
.If changing an existing definition:
If removing a declaration:
notNeededPackages.json
.