-
-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rpc] An object for accessing procedures using typescript #4032
Comments
The current client already gives you the type hints to show what procedures you can call: I think having a single client for all rpc is not good, especially considering tree shaking. My approach to this is slightly different:
One could easily build a unified client with this. |
you might want to use the HttpApi module from platform instead, that gives you a client in the style you want |
Question - is it possible to define HttpApi without |
@MrOxMasTer theres an example inside the tests. |
What is the problem this feature would solve?
This issue will be able to solve the problem
Maybe a query to create using a class is fine, but how to maintain it remains a mystery to me
What is the feature you are proposing to solve the problem?
An approximate implementation:
What alternatives have you considered?
trpc:
The text was updated successfully, but these errors were encountered: