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 refine with type guard signature #1404

Merged
merged 1 commit into from
Sep 11, 2022
Merged

Conversation

sbking
Copy link
Contributor

@sbking sbking commented Sep 11, 2022

When using .refine with a type guard, the current type definitions are changing the parser's Input type. This is inconsistent and causing issues in tRPC where Zod Input types are inferred for client procedure signatures.

This just updates the generic parameter and adds a (previously failing) test for the Input type.

@netlify
Copy link

netlify bot commented Sep 11, 2022

Deploy Preview for guileless-rolypoly-866f8a ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit b878546
🔍 Latest deploy log https://app.netlify.com/sites/guileless-rolypoly-866f8a/deploys/631e16bdd74d7d00083c7cc1
😎 Deploy Preview https://deploy-preview-1404--guileless-rolypoly-866f8a.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@colinhacks colinhacks merged commit d40a5eb into colinhacks:master Sep 11, 2022
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