tomblachut / svelte-intellij

Svelte components in WebStorm and friends
MIT License
482 stars 38 forks source link

typescript declarations not working correctly for derived stores. #303

Closed srsholmes closed 1 year ago

srsholmes commented 2 years ago

In some cases when using a derived store, the types are reported incorrectly. The return value of the derived store in this case in is a generated sdk from a Graphql Schema using https://www.graphql-code-generator.com.

As you can see, the method on the client has no declaration, jump to definition does not work, and as a result, the result from the method has no types. There are also no type errors for the input to the method.

This all works fine in VScode.

In VScode:

Screenshot 2022-08-05 at 11 48 43

In Webstorm:

Screenshot 2022-08-05 at 11 48 27 Screenshot 2022-08-05 at 11 51 33
tomblachut commented 1 year ago

Should be contained in WEB-58397 use the svelte language server.