typesafe api routes
Is there any future consideration to make first party orpc like thing in tanstack echosystem. I want to utilize my server routes in typesafe way in web application. server functions are good but not scalable to mobile and other integration...
it is simple to create such proxy if we have endpoint at 'api/users/invite: post`
it should be like api.users.postInvite() but also params, search params and body should be typesafe....
3 Replies
stormy-gold•2mo ago
never say never, but for now it wont happen
we recommend embedding a typesafe API like hono, elysia etc into a start server route
absent-sapphireOP•2mo ago
Is there any example repo or any docs resources?
sensitive-blue•2mo ago
Would love docs on how to do this