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: super refinement function types #2420

Merged
merged 2 commits into from
May 21, 2023

Conversation

carl0s-sa
Copy link
Contributor

@carl0s-sa carl0s-sa commented May 11, 2023

Typescript was complaining about the .superRefine argument returning a Promise when it was expecting a void return.

This fixes it so it accepts Promise<void> as a valid return value

Attachment of error:
Screenshot 2023-05-11 at 11 36 09

@netlify
Copy link

netlify bot commented May 11, 2023

Deploy Preview for guileless-rolypoly-866f8a ready!

Name Link
🔨 Latest commit d54f4ec
🔍 Latest deploy log https://app.netlify.com/sites/guileless-rolypoly-866f8a/deploys/646aa37fe3f4c1000881c271
😎 Deploy Preview https://deploy-preview-2420--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.

@carl0s-sa
Copy link
Contributor Author

ccing @colinhacks for review 🙏

@colinhacks colinhacks force-pushed the fix/super-refinement-types branch from 7afeee7 to e0d28c5 Compare May 21, 2023 23:02
@colinhacks
Copy link
Owner

Awesome thanks! Guess there's not a lot of async super-refiners out there.

@colinhacks colinhacks merged commit af08390 into colinhacks:master May 21, 2023
@carl0s-sa carl0s-sa deleted the fix/super-refinement-types branch June 8, 2023 10:49
@rjmackay
Copy link

rjmackay commented Jul 4, 2023

Any chance this will be included in a release soon?

@colinhacks
Copy link
Owner

Landed in 3.22

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.

3 participants