Closed izakfilmalter closed 6 years ago
@izakfilmalter, What IDE version are you using?
Generic arguments for tagged template strings (like styled.div<TabProps>
) are a TypeScript feature that was added fairly recently and are only supported since 2018.2 IDE versions.
I am on 2018.1.5
@izakfilmalter, Please try 2018.2, your sample works fine for me in the new version.
Unfortunately, support for these kinds of language features has to happen on the IDE side. There's some more details in this comment if you're interested.
@undeadcat Updating got it working thanks! Closing.
I am using typescript on a project and noticed that when you us an interface to type check the props on a styled-component, the linting breaks.