Replies: 1 comment 2 replies
-
I think the issue here is that TS can't carry generics like that through multiple levels, but @EskiMojo14 and @phryneas are probably able to answer that more definitively. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using typescript 5.6 and rtk 2.2.
I am using
createApi
with a custom base query. Basically the issue is that the custombaseQuery
calls an API that supports some complex type behavior. But this type information is lost when it is passed throughcreateApi
. I'm trying to find a way to preserve those types.Here is a simplified snippet of what is going on
As far as I can tell by reading through the types on
query
, there is no way to specify the generic type anywhere, so this is likely not supported. Any tips would be appreciated.Beta Was this translation helpful? Give feedback.
All reactions