styled-components / webstorm-styled-components

styled-components highlighting support in IntelliJ editors
https://plugins.jetbrains.com/plugin/9997-styled-components
MIT License
375 stars 19 forks source link

Styled variables undeclared #12

Closed Nauthiz-Jera closed 6 years ago

Nauthiz-Jera commented 7 years ago

Webstorm is warning that the properties of styled are undeclared. screen shot 2017-09-01 at 11 06 56 am

jm90m commented 7 years ago

Yeah I'm getting this as well

undeadcat commented 7 years ago

Thanks! It's a valid issue. Missed it.

WebStorm should have been able to resovle these properties using typing information contained in .d.ts files. Created https://youtrack.jetbrains.com/issue/WEB-28565 because it's part of a more general problem related to .d.ts support.

Will also take a look next week to see if a different fix specific to this plugin is possible.

bliitzkrieg commented 7 years ago

I'm also experiencing this

undeadcat commented 6 years ago

Sorry for not replying to this earlier. This has been fixed on the IDE side in 2017.3, in WebStorm and all IDEA-based IDEs.

Kudos to @anstarovoyt for fixing it. I'm going to close this, if it's ok. The linked issue is still open because it's a wider problem related to support of type aliases in TypeScript.