Adding Promise to tRPC Procedure
Im trying to add a promise to a prodecure and not sure how to do it. Any help?
2 Replies
they are async inherently, you don't need to wrap it in a promise
or rather, they are already promises, you shouldn't be wrapping it in a promise
You should not define the type, the magic of trpc is that it infers everything
If you want to manually enforce the return type, use .output()