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

Ensure createconnectQueryKey validates input types #493

Merged
merged 3 commits into from
Dec 10, 2024

Conversation

paul-sachs
Copy link
Collaborator

@paul-sachs paul-sachs commented Dec 9, 2024

Somewhere in the generics for create a connect query key, typescript was losing restrictions on the input field. Breaking up the initialization of the potential params and bringing forward the explicit I and O message params seems to resolve the issue.

Signed-off-by: Paul Sachs <psachs@buf.build>
Signed-off-by: Paul Sachs <psachs@buf.build>
@paul-sachs paul-sachs force-pushed the psachs/fix-key-typesafety branch from a4d3773 to 2414529 Compare December 9, 2024 17:35
Signed-off-by: Paul Sachs <psachs@buf.build>
@paul-sachs paul-sachs requested a review from timostamm December 9, 2024 17:45
@paul-sachs
Copy link
Collaborator Author

If there's a more typescript-foo way to do this without adding some additional type params, all up for it.

Copy link
Member

@timostamm timostamm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. LGTM.

@paul-sachs paul-sachs merged commit 0157e90 into main Dec 10, 2024
14 checks passed
@paul-sachs paul-sachs deleted the psachs/fix-key-typesafety branch December 10, 2024 13:34
@paul-sachs paul-sachs mentioned this pull request Dec 12, 2024
paul-sachs added a commit that referenced this pull request Dec 13, 2024
## What's Changed
* Ensure createconnectQueryKey validates input types by @paul-sachs in
#493
* Update dependencies to support react 19 by @paul-sachs in
#495

**Full Changelog**:
v2.0.0...v2.0.1

---------

Signed-off-by: Paul Sachs <psachs@buf.build>
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