CommandMC
CommandMC
ZZod
Created by CommandMC on 9/1/2024 in #questions
CommandMC - z.function().args() seems to forget...
Seems that for this specific case, using the following would work around the issue:
type argT = z.infer<ReturnType<typeof funcExample.parameters>>[0]
type argT = z.infer<ReturnType<typeof funcExample.parameters>>[0]
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
2 replies