Duncan Giles

Results 7 issues of Duncan Giles

**Is your feature request related to a problem? Please describe.** I'm unable to consume `"graphql-scalars"` from Typescript 4.7, when module resolution is set to `Node16` **Describe the solution you'd like**...

Add a convert method to ZodType, to allow for transforms that may fail Closes https://github.com/colinhacks/zod/issues/1223 Hopefully the examples in the README make the use case clear

When attempting a transform, it's possible that the transform may fail. In this case, it's necessary to return a typecast dummy value. I think having a 'convert' method on ZodType,...

Allow schemas to be chained, passing the output of one as the input to another. The output of the first schema is type-checked to ensure compatibility with the input of...

This PR introduces a new Error type, `ZodTransformError`, which accepts an array of issues in it's constructor. Closes https://github.com/colinhacks/zod/issues/1390 When thrown inside a transform, this error class will be caught...

When attempting a transform, it's possible that the transform may fail. In this case, there is no value to return, so it's necessary to return a typecast dummy value. Returning...

Are the `EitherAsync` methods `.map` and `.chain` deterministic, when the callback throws an error? Having run the following code to test behaviour, ``` typescript const e1 = await EitherAsync(() =>...