Skip to content
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.dev: Compat with React 19 types #1

Closed
wants to merge 3 commits into from
Closed

Conversation

eps1lon
Copy link
Owner

@eps1lon eps1lon commented Mar 21, 2024

Closes eps1lon/DefinitelyTyped#22

Commits are split into the changes that the codemod covers and changes that need to be done manually.

Remaining issues

  • @headlessui/react/dist/components/listbox/listbox.d.ts declares ListBox, ListBox.Option (and many more it seems) as a forwardRef render function i.e. (props, ref) => Node which is almost certainly incorrect (unless they expect people to pass it to forwardRef first. This was not caught because previously, structurally ref took up the position of legacy context.

eps1lon added 3 commits March 21, 2024 11:43

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
@eps1lon
Copy link
Owner Author

eps1lon commented Mar 21, 2024

Finished. Remaining issues in headlessui/react tracking in eps1lon/DefinitelyTyped#25

@eps1lon eps1lon closed this Mar 21, 2024
@eps1lon eps1lon changed the title Install React 19 types Compat with React 19 types Mar 21, 2024
@eps1lon eps1lon self-assigned this Mar 21, 2024
@eps1lon eps1lon changed the title Compat with React 19 types react.dev: Compat with React 19 types Mar 21, 2024
@eps1lon eps1lon mentioned this pull request May 13, 2024
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

React 19 and react.dev
1 participant