You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Property 'SomeStaticData' does not exist on type 'IStyledComponent<"web", typeof MyComponent, { className?: string | undefined; } & object> & object'.ts(2339)
The text was updated successfully, but these errors were encountered:
oskarwrobel
changed the title
v6 TS does not see static properties when component is wrapped by styled-component
v6 TS Missing static properties when component is wrapped by styled-component
Aug 1, 2023
TS does not see static properties when component is wrapped by styled-component.
Reproduction
Example: https://codesandbox.io/s/keen-euler-gxn4zj?file=/src/App.tsx
(CodeSandbox supports styled-components 6.0.0-beta.14 however it works exactly the same for 6.0.5)
Steps to reproduce
Wrap a component that contains static properties.
Expected Behavior
Static properties should remain accessible.
Actual Behavior
TS does not see static properties.
The text was updated successfully, but these errors were encountered: