Typing of RTK Query createApi
return value in JetBrains WebStorm?
#3397
-
Hi everyone, I'm evaluating a switch from VSCode to WebStorm for our frontend development. Everything works great so far, but I'm noticing that all our RTK Query typings are missing in code completion – see the detailed issue at https://youtrack.jetbrains.com/issue/WEB-60736/Return-type-of-createApi-from-redux-toolkit-is-not-correctly-inferred. May I ask if any of you are using Webstorm for RTK Query development and can or cannot confirm this finding? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Unfortunately, we cannot do much to support WebStorm until they start actually using TypeScript and not their own implementation. We have type tests that test the library against the last 5 versions of TypeScript to guarantee compatibility, but WebStorm uses some self-invented heuristic that often acts very similar to TypeScript, but oftentimes also completely goes off the rails and does stuff like you see there. I can really just recommend you to use an IDE for TypeScript development that actually uses the TypeScript language server (VSCode, vim, etc.). |
Beta Was this translation helpful? Give feedback.
Unfortunately, we cannot do much to support WebStorm until they start actually using TypeScript and not their own implementation.
We have type tests that test the library against the last 5 versions of TypeScript to guarantee compatibility, but WebStorm uses some self-invented heuristic that often acts very similar to TypeScript, but oftentimes also completely goes off the rails and does stuff like you see there.
I can really just recommend you to use an IDE for TypeScript development that actually uses the TypeScript language server (VSCode, vim, etc.).