Skip to content

Revert "[@types/react] fix: remove onPointerEnterCapture & onPointerLeaveCapture (#68984)#69005

Merged
eps1lon merged 2 commits intoDefinitelyTyped:masterfrom
Thulof:master
Mar 18, 2024
Merged

Revert "[@types/react] fix: remove onPointerEnterCapture & onPointerLeaveCapture (#68984)#69005
eps1lon merged 2 commits intoDefinitelyTyped:masterfrom
Thulof:master

Conversation

@Thulof
Copy link
Copy Markdown
Contributor

@Thulof Thulof commented Mar 15, 2024

Please see #69006.

This reverts commit 73b5985.

Please fill in this template.

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
  • 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.

@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Mar 15, 2024

@Thulof 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 PR

Code Reviews

Because 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

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • 🕐 Only a DT maintainer can approve changes without tests

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 69005,
  "author": "Thulof",
  "headCommitOid": "62c3375d66a6f332780d5e610f63ae2329ecce9f",
  "mergeBaseOid": "f6b37733d6a66dc9794fffebf9a4757008b5faa1",
  "lastPushDate": "2024-03-15T14:43:44.000Z",
  "lastActivityDate": "2024-03-18T13:23:26.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": true,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "react",
      "kind": "edit",
      "files": [
        {
          "path": "types/react/v16/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/react/v17/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",
        "Semigradsky",
        "mattpocock"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "eps1lon",
      "date": "2024-03-18T13:15:27.000Z",
      "isMaintainer": false
    }
  ],
  "mainBotCommentID": 1999820310,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added Critical package Untested Change This PR does not touch tests labels Mar 15, 2024
@typescript-bot
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Collaborator

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to confirm #69006 first.

@typescript-bot typescript-bot added the Revision needed This PR needs code changes before it can be merged. label Mar 15, 2024
@typescript-bot
Copy link
Copy Markdown
Contributor

@Thulof 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!

@Thulof Thulof closed this Mar 18, 2024
@Thulof Thulof reopened this Mar 18, 2024
@typescript-bot typescript-bot removed the Revision needed This PR needs code changes before it can be merged. label Mar 18, 2024
@typescript-bot
Copy link
Copy Markdown
Contributor

@eps1lon Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

We want to highlight this bad type.
VSCode will use strike-through text for this prop which may help avoid this handler.
Copy link
Copy Markdown
Collaborator

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for sticking with it!

@typescript-bot typescript-bot added the Owner Approved A listed owner of this package signed off on the pull request. label Mar 18, 2024
@Thulof
Copy link
Copy Markdown
Contributor Author

Thulof commented Mar 18, 2024

Thank you for sticking with it!

You're welcome, I'm glad I could help. 😄

@silversonicaxel
Copy link
Copy Markdown
Contributor

silversonicaxel commented Apr 2, 2024

The revert was partially done.
As we can see here 73b5985 the folders initially involved were react/, react/ts5.0, react/v16, react/v17 but the revert touched only react/v16, react/v17.

Shall we need another revert patch @Thulof ?

@fzaninotto
Copy link
Copy Markdown

This is still not fixed in @types/react v18.2.78.

@Thulof
Copy link
Copy Markdown
Contributor Author

Thulof commented May 13, 2024

This is still not fixed in @types/react v18.2.78.

@fzaninotto According to #69243 (review), the change won't be reverted for 18 or next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Critical package Owner Approved A listed owner of this package signed off on the pull request. Untested Change This PR does not touch tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants