rik
rik
TtRPC
Created by rik on 2/26/2024 in #❓-help
Zod.enum makes my tRPC explode
I have:
export const insertWorkResponseSchema = z.object({
status: z.string(), //z.enum(["OK", "ERROR"]),
message: z.string()
});
export const insertWorkResponseSchema = z.object({
status: z.string(), //z.enum(["OK", "ERROR"]),
message: z.string()
});
This is used as an output validator for a tRPC call to add work to a queue. If I switch the z.string to the z.enum, it kerplodes with the error messages above.
4 replies
TtRPC
Created by rik on 2/26/2024 in #❓-help
Zod.enum makes my tRPC explode
This is not a circular dependency issue. It's a z.enum issue.
4 replies
TtRPC
Created by rik on 2/21/2024 in #❓-help
Beginner Client Problems
Thank you for the help.
8 replies
TtRPC
Created by rik on 2/21/2024 in #❓-help
Beginner Client Problems
aha. The createTRPCProxyClient call was my stumbling block. That and having been redirected to the v11 docs without realizing it.
8 replies
TtRPC
Created by rik on 2/21/2024 in #❓-help
Beginner Client Problems
No description
8 replies