c1ub
c1ub
TTCTheo's Typesafe Cult
Created by c1ub on 5/24/2023 in #questions
Typescript wizards needed! Circular dependency with Zod inferred schema type withing superRefine()
5 replies
TTCTheo's Typesafe Cult
Created by c1ub on 5/24/2023 in #questions
Typescript wizards needed! Circular dependency with Zod inferred schema type withing superRefine()
an example here the val: SchemaType in the validationRules function here causes the circular dependency error ps: forgive me i dont type in serif font idk what happened
5 replies
TTCTheo's Typesafe Cult
Created by c1ub on 5/17/2023 in #questions
Is there a way in Zod to validate a field in a schema conditionally on another fields value?
I thought this wouldn't work how I wanted when I first saw it, but you are right! Thank you!
4 replies