Barakonda
pipe/unstable_pipe
just checked' i have 2 projects in one it exists and in the other it doesn't
10.9.0 - here it doesn't exist
but here 10.1.0 it does
weird how it exists in an earlier version but was later removed and now returned?
or maybe its a bug with typescript?
4 replies
input using z.or not working properly
@Nick Lucas true, but it works if its a sub object inside the main input schema(from another part in my project)
like this
let input = z.object({
name: z.object({z.string().optional()
}).or(z.object({
id: z.number().optional()
}));
12 replies