Replies: 2 comments 2 replies
-
Hey @ywarezk, I find this approach interesting and I've played around with similar ideas before, see #3727. My main question is if the decorators in TypeScript are enough yet to support this, I'm not sure if e.g. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The following suggestion is heavily inspired by the type-graphql library.
The idea is to bring a similar approach to trpc and allow developers to develop their trpc api using class based approach.
To help doing this a set of decorators will be supplied.
Here is a simple example of what I thought:
Few advantages with this approach:
Beta Was this translation helpful? Give feedback.
All reactions