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

RSC: Add some types for RSDW/client #10199

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

Tobbe
Copy link
Member

@Tobbe Tobbe commented Mar 11, 2024

Adding types for the methods we use from the client export in the react-server-dom-webpack package

Types grabbed from https://github.com/facebook/react/blob/main/packages/react-server-dom-webpack/src/ReactFlightDOMClientBrowser.js and other relevant files there

While doing this I also noticed that some of our current typings were wrong, so I fixed that (some things that were returned were actually Thenables, but not typed as such)

@Tobbe Tobbe added changesets-ok Override the changesets check release:fix This PR is a fix labels Mar 11, 2024
@Tobbe Tobbe added this to the RSC milestone Mar 11, 2024
@Tobbe Tobbe merged commit 827dd9b into redwoodjs:main Mar 11, 2024
44 of 50 checks passed
@Tobbe Tobbe deleted the tobbe-rsc-rsdw-client-types branch March 11, 2024 15:29
@Josh-Walker-GM Josh-Walker-GM modified the milestones: RSC, v8.0.0 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changesets-ok Override the changesets check release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants