-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type bug: Query's createApi
throws annotation error when declaration: true
#1090
Comments
createApi
throws annotation error when declaration: true
createApi
throws annotation error when declaration: true
may be useful |
I was going to create a new issue but it's too related:
To reproduce, just use the |
Unless the TypeScript team finally gives a good explanation when & why exactly those errors occur and how to prevent them (apart from exporting every single type, which is not a valid solution) I'm sorry there is not much we can do about that. |
FYI, I copy-pasted EDIT: I had to also export |
Error:
Reproduced:
RTK example repo with tsconfig updated to set
declaration: true
https://codesandbox.io/s/heuristic-ellis-49zgc?file=/src/services/api.ts
The text was updated successfully, but these errors were encountered: