typescript issues defining my api slice
I hope someone can shed some light on my issue, I am switching to RTK-query and I have typescript errors fetching the query hooks.
the getSearchData endpoint doesn't have any type defined, as it just returns the list of coins for the search input.
the getMarketData has an interface defined which I imported in my api slice and pass it as data type inside the transformResponse key.
maybe some guidance to where to look for the error would be appreciated. thank you
0
3 comments
Mioara Cenusa
7
typescript issues defining my api slice
Developer Pro
skool.com/developerpro
Learn how to code. Make money. Have fun. Enjoy life.
Leaderboard (30-day)
Powered by