Lukas
Wrong input types derived from @effect/schema
It seems like trpc is unable to resolve the input types for a procedure I'm using.
The input is
And the resulting type is
This is from the webstorm hover.
Decode function type in thread (char limit)
I'm guessing for some reason, trpc get's confused specifically by the use of
optionalWith
as it works correctly with optional
Happy to provide context and figure this out.3 replies
Can I get a mutations input type form my client?
Hey friends, I'm working on an angular app with tanstack query and trpc. I'm trying to solve duplication and have one central repository (service) of query options. For this I am using a service and it would be amazing to get the input type for my procedures.
You can see that I'd love to use the input type where I currently have
any
. Looking forward to your input.
EDIT: Okay I found AppRouter['templateCategories']['create']['_def']['$types']['input']
but that does not seem very nice 😅2 replies