Skip to content

chore: improve types for functions and cookies #101

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

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.

1 participant