styled-components / xstyled

A utility-first CSS-in-JS framework built for React. 💅👩‍🎤⚡️
https://xstyled.dev
MIT License
2.27k stars 106 forks source link

VSCode code completion requires type definitions for styled-components #309

Closed ibejoeb closed 2 years ago

ibejoeb commented 2 years ago

It appears that Visual Studio Code can't do code completion/intellisense for x.* element attributes without adding @types/styled-components. It might be worth noting in the TypeScript section of the docs. I'm happy to do it; just need a little guidance on the process.

gregberge commented 2 years ago

Since you have to install styled-components when you use @xstyled/styled-components it seems obvious that if you use TypeScript you also have to install @types/styled-components since styled-components does not have included typings.