DEV Community

Discussion on: The 3 essentials to get started with styled-components

Collapse
 
murplewasoncepurple profile image
John Hillert

We access our styled components writing S. and then the name of the component.

Ok, so I followed the pattern for a few years, I think because I read this exact article or one just like it when I was learning to be a developer. Here is my question. How do you get this to work with TypeScript. I've tried all sorts of ways to type an object of as-yet unknown styled components and it kills code completion in vs code.

This is what I mean by kills code completion.