Skip to content

Conversation

@caseybaggz
Copy link

@caseybaggz caseybaggz commented Mar 17, 2025

What kind of change does this PR introduce?

This PR introduces improved typing which fixes Typescript errors that occur in certain IDEs from the latest release.

What is the current behavior?

When upgrading to 0.6.1 certain TS environments will produce type errors due to confusion with the types. For example, in my current project using SSR went from 0 type errors to about 21 all connected to the createServerClient function.

What is the new behavior?

This change both fixes and improves the developer experience for typing in general by simplifying the types in a way that will not confuse Typescript while providing the deprecation notices in the correct locations for developers to easily understand how to migrate which part of the code.

Additional context

n/a

@mandarini mandarini force-pushed the fix/improve-param-typing branch 3 times, most recently from 3579fd3 to 2e73a11 Compare November 26, 2025 13:55
@mandarini
Copy link
Contributor

@caseybaggz thank you very much for your PR. Unfortunately the tests are failing. Do you want to take a look?

@mandarini mandarini self-assigned this Nov 26, 2025
@mandarini mandarini force-pushed the fix/improve-param-typing branch from 2e73a11 to b5a7248 Compare November 26, 2025 14:02
@caseybaggz
Copy link
Author

@mandarini Yeah, no problem. This might not be an issue anymore since it's so old? If it's not I'll close it ✅

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.

2 participants