Skip to content

Typing of RTK Query createApi return value in JetBrains WebStorm? #3397

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

You must be logged in to vote

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.).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@joshuajung
Comment options

@mitroc
Comment options

@joshuajung
Comment options

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