You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.
Describe the bug
First of all: many thanks for this great library, you've done a very good job! :)
We have a backend that is exposed via swagger and generate the API for the frontend, which is giving us the correct types and also functions, but the generic types TData, TError, etc. are always void, e.g.: UseGetProps<void, void, void, void> or useGet<void, void, void, void>(...)
Expected behavior
We would expect that the response type (TData) is used in the generic definition of the types and functions.
In this example, EnvInfo should be used instead of void:
At the moment we can work around this issue by defining the props and hooks ourselfs, but of course it would be nice if the generated API would be completely typed. Thank you!
The text was updated successfully, but these errors were encountered:
Describe the bug
First of all: many thanks for this great library, you've done a very good job! :)
We have a backend that is exposed via swagger and generate the API for the frontend, which is giving us the correct types and also functions, but the generic types TData, TError, etc. are always void, e.g.:
UseGetProps<void, void, void, void>
oruseGet<void, void, void, void>(...)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
We would expect that the response type (TData) is used in the generic definition of the types and functions.
In this example,
EnvInfo
should be used instead ofvoid
:At the moment we can work around this issue by defining the props and hooks ourselfs, but of course it would be nice if the generated API would be completely typed. Thank you!
The text was updated successfully, but these errors were encountered: