Skip to content

enchanceEndpoints -> transformResponse TS error #2726

Answered by phryneas
bogdan0083 asked this question in Q&A
Discussion options

You must be logged in to vote
export const todosApiSlice = generatedApi.enhanceEndpoints<string>({

you should definitely not be putting that <string> there.

Apart from that, unfortunately currently enhanceEndpoints cannot change the type of the returned value. It will work in runtime code, but they types will not accept it.
I'll see if I can change that somehow soon.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bogdan0083
Comment options

@phryneas
Comment options

Answer selected by bogdan0083
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants