-
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
[plotly.js] Fix TS2430 error with exactOptionalPropertyTypes
#69621
[plotly.js] Fix TS2430 error with exactOptionalPropertyTypes
#69621
Conversation
$ echo 'import "plotly.js"' > test.ts $ tsc --strict --exactOptionalPropertyTypes test.ts node_modules/@types/plotly.js/index.d.ts:120:18 - error TS2430: Interface 'PlotRelayoutEvent' incorrectly extends interface 'Partial<Layout>'. Types of property '"xaxis.range[0]"' are incompatible. Type 'number | undefined' is not assignable to type 'Datum'. Type 'undefined' is not assignable to type 'Datum'. 120 export interface PlotRelayoutEvent extends Partial<Layout> { ~~~~~~~~~~~~~~~~~ Found 1 error in node_modules/@types/plotly.js/index.d.ts:120 Signed-off-by: Anders Kaseorg <andersk@mit.edu>
@andersk Thank you for submitting this PR! This is a live comment which I will keep updated. 1 package in this PR
Code ReviewsThis PR can be merged once it's reviewed. 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": 69621,
"author": "andersk",
"headCommitOid": "b4077201b1bcdfc337ed53d49e7489ad184d2e7c",
"mergeBaseOid": "1bba57575cd1fc07e67147b89872cffa0684f35b",
"lastPushDate": "2024-05-16T03:02:27.000Z",
"lastActivityDate": "2024-06-04T21:49:29.000Z",
"maintainerBlessed": "Waiting for Code Reviews",
"mergeOfferDate": "2024-06-04T20:55:13.000Z",
"mergeRequestDate": "2024-06-04T21:49:29.000Z",
"mergeRequestUser": "andersk",
"hasMergeConflict": false,
"isFirstContribution": false,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Popular",
"pkgInfo": [
{
"name": "plotly.js",
"kind": "edit",
"files": [
{
"path": "types/plotly.js/index.d.ts",
"kind": "definition"
}
],
"owners": [
"chrisgervang",
"martinduparc",
"frederikaalund",
"taoqf",
"Dadstart",
"szechyjs",
"soorajpudiyadath",
"jonfreedman",
"meganrm",
"milesjos",
"skippercool",
"mtadams007",
"marnett-git",
"peterblazejewicz",
"brammitch",
"blizzardjessica",
"olegshilov",
"PabloGracia",
"jvgogh",
"jpabdou"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Popular"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "peterblazejewicz",
"date": "2024-06-04T20:54:36.000Z",
"isMaintainer": true
}
],
"mainBotCommentID": 2113926492,
"ciResult": "pass"
} |
Hey @andersk, 😒 Your PR doesn't modify any tests, so it's hard to know what's being fixed, and your changes might regress in the future. Please consider 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! |
🔔 @chrisgervang @martinduparc @frederikaalund @taoqf @Dadstart @szechyjs @soorajpudiyadath @jonfreedman @meganrm @milesjos @SkipperCool @mtadams007 @marnett-git @peterblazejewicz @brammitch @blizzardjessica @olegshilov @PabloGracia @jvgogh @jpabdou — please review this PR in the next few days. Be sure to explicitly select |
Submitted upstream: DefinitelyTyped/DefinitelyTyped#69621 Signed-off-by: Anders Kaseorg <anders@zulip.com>
Submitted upstream: DefinitelyTyped/DefinitelyTyped#69621 Signed-off-by: Anders Kaseorg <anders@zulip.com>
Re-ping @chrisgervang, @martinduparc, @frederikaalund, @taoqf, @Dadstart, @szechyjs, @soorajpudiyadath, @jonfreedman, @meganrm, @milesjos, @SkipperCool, @mtadams007, @marnett-git, @peterblazejewicz, @brammitch, @blizzardjessica, @olegshilov, @PabloGracia, @jvgogh, @jpabdou: 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, @andersk. (Ping @chrisgervang, @martinduparc, @frederikaalund, @taoqf, @Dadstart, @szechyjs, @soorajpudiyadath, @jonfreedman, @meganrm, @milesjos, @SkipperCool, @mtadams007, @marnett-git, @peterblazejewicz, @brammitch, @blizzardjessica, @olegshilov, @PabloGracia, @jvgogh, @jpabdou.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
The change is 3 years old, it could be other part of DT module changed in the meantime
@andersk: Everything looks good here. I am ready to merge this PR (at b407720) 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! ❤️ (@chrisgervang, @martinduparc, @frederikaalund, @taoqf, @Dadstart, @szechyjs, @soorajpudiyadath, @jonfreedman, @meganrm, @milesjos, @SkipperCool, @mtadams007, @marnett-git, @peterblazejewicz, @brammitch, @blizzardjessica, @olegshilov, @PabloGracia, @jvgogh, @jpabdou: you can do this too.) |
Ready to merge |
An automated change #54346 that was intended to fix errors with
exactOptionalPropertyTypes
actually introduced an error withexactOptionalPropertyTypes
here. Fix it.Please fill in this template.
pnpm test <package to test>
.Select one of these and delete the others:
If changing an existing definition:
package.json
.