v11: inferRouterInputs is returning `void | <zod object>` so it's unusable?
can't see what I'm doing different than docs
would be really cool if this worked


2 Replies
adding
if (!input) throw new Error('Input should not be void'); fixed it, but it shouldn't even get to the method if the data isn't sent, so that's a superfluous check. i don't think RouterInput should be returning void |
doesn't seem like inferRouterOutputs uses the .output but instead uses the mutation return type.. so it's a circular reference. yet the inferRouterInputs is clearly using the .input
ya inferTransformedProcedureOutput is referencing the return type, so I can't do a bi-directional reference, requiring me to abstract the zod schema, which is a pain. I hate jumping around code just to edit typesHey, I'm having the same issue, did you find any solution to this problem?