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

Fix preserveScroll and preserveState types #1882

Merged
merged 2 commits into from
May 28, 2024
Merged

Conversation

reinink
Copy link
Member

@reinink reinink commented May 28, 2024

Right now the PreserveStateOption type (used for the preserveScroll and preserveState options) accepts a generic string — however the only string value that's supported is 'errors', so I've tightened up this type to reflect that.

I've also updated the return type for resolvePreserveOption, which should only ever return a boolean.

@reinink reinink merged commit 683155c into master May 28, 2024
7 checks passed
@reinink reinink deleted the fix-preserve-state-types branch May 28, 2024 13:55
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.

None yet

2 participants