CommandMC - z.function().args() seems to forget...
z.function().args()
seems to forget brand
s?
Hello. Using a brand
ed schema as an argument to a Zod function (z.function()
) & then inferring the type of that function doesn't seem to be working correctly, the argument type just reverts to its non-branded type
TS Playground example of my issue1 Reply
Seems that for this specific case, using the following would work around the issue:
Sadly that doesn't help much for my use case, I need the correct type from just the output type of the function
My use case is something more alike to this: Playground Link