Captainrobb
TTCTheo's Typesafe Cult
•Created by Captainrobb on 6/19/2024 in #questions
TypeScript types error using zod.
Bumping this
5 replies
TTCTheo's Typesafe Cult
•Created by Captainrobb on 6/19/2024 in #questions
TypeScript types error using zod.
would still love the opinion of someone more familiar with this than I
5 replies
TTCTheo's Typesafe Cult
•Created by Captainrobb on 6/19/2024 in #questions
TypeScript types error using zod.
I seem to have finally found something that works though idk how correct it is. I changed the ProfessorSchema to ProfSchema and then created another const ProfessorSchema which extends ProfSchema and then I left CourseSchema lazy loading where it is and it seems typescript is now able to infer the return value
5 replies