Integration with ts-rest? #132
sourav-bhar
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Sorry, but I don't have any experience with this library. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @NetanelBasal,
First, thank you so much for creating this awesome library! I'm really looking forward to using it in an upcoming project. One of the things I'm considering is if there is a way of using this along with the
ts-rest
package to develop e2e type-safe APIs. There already seems to be a React and Vue adapter for this, so I was wondering – can something similar be built for Angular?One possible complication I see is that
ts-rest
's CustomClient still depends ontsRestFetchApi
, which usesfetch
under the hood; so using this may mean skipping the HttpClient, but getting a type-safe frontend client would probably still make it worth it.Edit:
HttpClient
integration may also be possible by using a custom api override.Any thoughts on if / how we could integrate with
ts-rest
?Beta Was this translation helpful? Give feedback.
All reactions