We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, refine has a type guard which is used to narrow down the output type.
refine
refine<RefinedOutput extends Output>( check: (arg: Output) => arg is RefinedOutput, message?: /* ... */ ): ZodEffects<this, RefinedOutput, RefinedOutput>; superRefine: ( refinement: RefinementEffect<Output>["refinement"] ) => ZodEffects<this, Output, Input>;
I propose adding this functionality to superRefine as well.
superRefine
The text was updated successfully, but these errors were encountered:
@DanielBreiner Agreed on this front. This is a fun little exercise in TS wrangling that I'm enjoying... :D
Sorry, something went wrong.
@DanielBreiner do you mind looking at #1615 and seeing if it works for you?
@maxArturo Looks great, thanks a lot for the PR.
Successfully merging a pull request may close this issue.
Currently,
refine
has a type guard which is used to narrow down the output type.I propose adding this functionality to
superRefine
as well.The text was updated successfully, but these errors were encountered: