Adding Promise to tRPC Procedure

Im trying to add a promise to a prodecure and not sure how to do it. Any help?
No description
2 Replies
Josh
Josh13mo ago
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
iDarkLightning
iDarkLightning13mo ago
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()
Want results from more Discord servers?
Add your server