Skip to content

fix(types): compatibility with @types/react >=18.2.66#655

Merged
dbismut merged 2 commits intopmndrs:mainfrom
Methuselah96:fix-types-react-compat
Mar 21, 2024
Merged

fix(types): compatibility with @types/react >=18.2.66#655
dbismut merged 2 commits intopmndrs:mainfrom
Methuselah96:fix-types-react-compat

Conversation

@Methuselah96
Copy link
Copy Markdown
Contributor

@Methuselah96 Methuselah96 commented Mar 16, 2024

Fixes #654.

The onPointerEnterCapture and onPointerLeaveCapture events were removed from @types/react in DefinitelyTyped/DefinitelyTyped#68984, which causes the type error shown in the above issue.

This PR fixes the type error by removing those events from use-gesture's DOMHandlers type.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 16, 2024

🦋 Changeset detected

Latest commit: fb066d8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@use-gesture/core Patch
@use-gesture/react Patch
@use-gesture/vanilla Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codesandbox-ci
Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit fb066d8:

Sandbox Source
gesture-drag Configuration
gesture-drag-target Configuration
gesture-nested Configuration
gesture-drag-vanilla Configuration
gesture-move Configuration
gesture-pinch Configuration
gesture-multiple-pinch Configuration
gesture-three Configuration
gesture-card-zoom Configuration
gesture-viewpager Configuration

@dbismut dbismut merged commit 6f6f4a5 into pmndrs:main Mar 21, 2024
@Methuselah96 Methuselah96 deleted the fix-types-react-compat branch March 21, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Type error with @types/react >=18.2.66

2 participants