-
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
[@types/react] Refer to string for the download attribute #64460
Conversation
@autarc 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
Once every item on this list is checked, I'll ask you for permission to merge and publish the changes. InactiveThis PR has been inactive for 31 days — it is considered abandoned, and therefore closed! Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 64460,
"author": "autarc",
"headCommitOid": "f131f891d34a862f77a66b17d8751cd60688fe69",
"mergeBaseOid": "07b6d02468ba8589ffdafdd7db3a16fd12b3aaf7",
"lastPushDate": "2023-02-23T10:17:05.000Z",
"lastActivityDate": "2023-04-18T06:48:13.000Z",
"hasMergeConflict": false,
"isFirstContribution": true,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Critical",
"pkgInfo": [
{
"name": "react",
"kind": "edit",
"files": [
{
"path": "types/react/index.d.ts",
"kind": "definition"
},
{
"path": "types/react/test/elementAttributes.tsx",
"kind": "test"
},
{
"path": "types/react/v15/index.d.ts",
"kind": "definition"
},
{
"path": "types/react/v16/index.d.ts",
"kind": "definition"
},
{
"path": "types/react/v16/test/elementAttributes.tsx",
"kind": "test"
},
{
"path": "types/react/v17/index.d.ts",
"kind": "definition"
},
{
"path": "types/react/v17/test/elementAttributes.tsx",
"kind": "test"
}
],
"owners": [
"johnnyreilly",
"bbenezech",
"pzavolinsky",
"ericanderson",
"DovydasNavickas",
"theruther4d",
"guilhermehubner",
"ferdaber",
"jrakotoharisoa",
"pascaloliv",
"hotell",
"franklixuefei",
"Jessidhia",
"saranshkataria",
"lukyth",
"eps1lon",
"zieka",
"dancerphil",
"dimitropoulos",
"disjukr",
"vhfmag",
"hellatan",
"priyanshurav",
"Semigradsky"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Critical"
}
],
"reviews": [
{
"type": "changereq",
"reviewer": "eps1lon",
"date": "2023-04-18T06:48:13.000Z"
}
],
"mainBotCommentID": 1441491431,
"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 @Semigradsky — 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.
There are no restrictions on allowed values
Did you check when we introduced this type if we made it any
on purpose since the spec has no restriction on the type?
@autarc One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you! |
Apparently it was introduced some time ago by the definitions carrying for v16/v17 with this commit (09d10b6#diff-b90a3db64689e262ba23dd8f4f12f7e1b1a8b676fa3123655f6a7b99a8e426f0R1846) based on this pull request (#48971). Are you aware of situation or issue which lead to marking it as |
@autarc I haven't seen any activity on this PR in more than three weeks, and it still has problems that prevent it from being merged. The PR will be closed on Mar 25th (in a week) if the issues aren't addressed. |
@eps1lon Could you share some thoughts about the mention here (#64460 (comment))? As suggested I checked where it came from but there didn't seem a deeper reason from what I got. Might of course be that I missed something you're more aware based on the PR at which it got introduced. As the official specification describes the value as a |
You should go beyond the apparent git-blame and check when it as actually introduced into the typings. It's unlikely we actually added it when copying types. |
@autarc I haven't seen any activity on this PR in more than three weeks, and it still has problems that prevent it from being merged. The PR will be closed on Apr 19th (in a week) if the issues aren't addressed. |
Taking a look at the Having that in mind the current notion of |
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.
It's still not clear when this was introduced. The original blame points to bcaf366 but at that point everything was any
. So is this just a leftover or was there a single commit that narrowed all attributes properly but excluded this prop for a specific reason.
Also please rebase this PR on top of latest master
and port changes to the new ts5.0
fork.
@autarc I haven't seen any activity on this PR in more than three weeks, and it still has problems that prevent it from being merged. The PR will be closed on May 18th (in a week) if the issues aren't addressed. |
@autarc To keep things tidy, we have to close PRs that aren't mergeable and don't have activity in the last month. No worries, though — please open a new PR if you'd like to continue with this change. Thank you! |
Pull Request
Description
Currently the
download
attribute of anchor elements and derived ones are specified as optional orany
. Based on the HTML specification and common references the value is expected to be astring
if it is set. The adjustment helps to guide the usage while also easing the integration at environments which enforce a stricter policy (noany
).Template Checklist
npm test <package to test>
.If changing an existing definition: