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
Look at the type passed for the customFetch in the generated code. If you have vscode, you can hover on your generated function to see the return type of it.
What happens?
Custom-fetch receives a Promise<listPetsResponse> in place of the generic T.
What were you expecting to happen?
Only to pass listPetsResponse in place of the generic T. Custom-fetch has to await so its expected signature will be Promise<T>. If you pass Promise<listPetsResponse>, you end up with functions that have returned type Promise<Promise>`
Any logs, error output, etc?
No errors, I think it is just incorrect in term of type.
What are the steps to reproduce this issue?
next-app-with-fetch
sampleWhat happens?
Custom-fetch receives a
Promise<listPetsResponse>
in place of the genericT
.What were you expecting to happen?
Only to pass
listPetsResponse
in place of the genericT
. Custom-fetch has to await so its expected signature will bePromise<T>
. If you passPromise<listPetsResponse>
, you end up with functions that have returned type Promise<Promise>`Any logs, error output, etc?
No errors, I think it is just incorrect in term of type.
What versions are you using?
The text was updated successfully, but these errors were encountered: