inferRPCMethodFromContractRouter #577
Unanswered
WellingtonVell
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i am messing around with the project and was wandering if i could change the methods from the default POST for all to especific ones... so after some search i find out ORPC Router to Contract, this worked but i am facing some problem with the typesafety.
Copied and pasted the script under
apps/server/src/routers/contract/index.ts
and generated itapps/server/src/routers/todo.ts
if i remove the unknown the typescript will complain
apps/web/src/lib/orpc.ts
dont know if i need to do something from oRPC Custom Request Method, would love some help
Beta Was this translation helpful? Give feedback.
All reactions