Syntax highlighting broken with typescript type literals and with simple elements like styled.div
See original GitHub issue#26 only added partial typescript support:
const StyledSection = styled.div<{ backgroundColor?: string }>` // no highlighting
const StyledSection = styled.div<Props>` // no highlighting
const StyledSection = styled<{ backgroundColor?: string }>('div')` // no highlighting
const StyledSection = styled<Props>('div')` // works
Issue Analytics
- State:
- Created 5 years ago
- Reactions:34
- Comments:33
Top Results From Across the Web
Developers - Syntax highlighting broken with typescript type literals ...
Syntax highlighting broken with typescript type literals and with simple elements like styled.div.
Read more >Tooling - styled-components
This plugin transpiles styled-components tagged template literals down to a smaller representation than what Babel normally creates. Wait, transpiling tagged ...
Read more >Using styled-components with props and TypeScript
1) and styled-components (eg. 3.4.5) there's no need for a separate helper. You can specify the interface/type of your props to styled- ...
Read more >The starting point for learning TypeScript
Cheat Sheets. Downloadable syntax reference pages for different parts of everyday TypeScript code. Control Flow Analysis · Classes · Interfaces · Types ......
Read more >Using styled-components in TypeScript: A tutorial with examples
This installs the styled-components types for TypeScript as a dev ... styled gives us the option to use any HTML element, such as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
to all: its finally fixed with 0.0.26 released today 🎉
Same for
css<..>