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
[react] add missing html table attributes #60651
[react] add missing html table attributes #60651
Conversation
|
@tholman Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through. This is a live comment which I will keep updated. 1 package in this PRCode ReviewsBecause this is a widely-used package, a DT maintainer will need to review it before it can be merged. 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": 60651,
"author": "tholman",
"headCommitOid": "f76f08ac226a313e1f8fdba69818887656d6c644",
"mergeBaseOid": "2450e6f60299c22aaf428ac54a09f6a6e6ef0547",
"lastPushDate": "2022-06-03T14:35:38.000Z",
"lastActivityDate": "2022-06-04T02:20:22.000Z",
"mergeOfferDate": "2022-06-04T01:46:22.000Z",
"mergeRequestDate": "2022-06-04T02:20:22.000Z",
"mergeRequestUser": "tholman",
"hasMergeConflict": false,
"isFirstContribution": true,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Critical",
"pkgInfo": [
{
"name": "react",
"kind": "edit",
"files": [
{
"path": "types/react/index.d.ts",
"kind": "definition"
}
],
"owners": [
"johnnyreilly",
"bbenezech",
"pzavolinsky",
"ericanderson",
"DovydasNavickas",
"theruther4d",
"guilhermehubner",
"ferdaber",
"jrakotoharisoa",
"pascaloliv",
"hotell",
"franklixuefei",
"Jessidhia",
"saranshkataria",
"lukyth",
"eps1lon",
"zieka",
"dancerphil",
"dimitropoulos",
"disjukr",
"vhfmag",
"hellatan",
"priyanshurav"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Critical"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "rbuckton",
"date": "2022-06-04T01:45:43.000Z",
"isMaintainer": true
},
{
"type": "approved",
"reviewer": "eps1lon",
"date": "2022-06-03T17:16:25.000Z",
"isMaintainer": false
}
],
"mainBotCommentID": 1146030474,
"ciResult": "pass"
} |
|
🔔 @johnnyreilly @bbenezech @pzavolinsky @ericanderson @DovydasNavickas @theruther4d @guilhermehubner @ferdaber @jrakotoharisoa @pascaloliv @Hotell @franklixuefei @Jessidhia @saranshkataria @lukyth @eps1lon @zieka @dancerphil @dimitropoulos @disjukr @vhfmag @hellatan @priyanshurav — please review this PR in the next few days. Be sure to explicitly select |
|
Inspecting the JavaScript source for this package found some properties that are not in the .d.ts files. react (unpkg)was missing the following properties:
|
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.
Did you check if we have other deprecated attributes here? Did we maybe remove these in the past or discussed it earlier?
All of the attributes on I've extended the interface locally to pass typechecks, but figured I'd extend the fix here. |
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.
All of the attributes on Table are deprecated including the ones currently in the types file.
Gotcha. We'll mark them all as deprecated in a follow-up. Thanks for checking!
|
Ready to merge |
|
|
Naw, https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table#attr-border |
|
Oh, interesting! So HTML is weird sometimes... Thanks! |
See DefinitelyTyped/DefinitelyTyped#60651 (comment) The `border` property must be a number.
Please fill in this template.
npm test <package to test>.Select one of these and delete the others:
If adding a new definition:
.d.tsfiles generated via--declarationdts-gen --dt, not by basing it on an existing project.tslint.jsonshould contain{ "extends": "@definitelytyped/dtslint/dt.json" }, and no additional rules.tsconfig.jsonshould havenoImplicitAny,noImplicitThis,strictNullChecks, andstrictFunctionTypesset totrue.If changing an existing definition:
If removing a declaration:
notNeededPackages.json.