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
importstyledfrom'styled-components';constOne=styled.div``;constTwo=styled(One)``;constfoo=(component: typeofOne)=>{// do something};foo(Two);
Expected Behavior
No type error.
Actual Behavior
The text was updated successfully, but these errors were encountered:
samettttt
changed the title
Regression when using typeof on a styled component
Regression: typeof on a styled component returns incompatible type
May 7, 2024
Environment
System:
Binaries:
Reproduction
https://stackblitz.com/edit/rtl-template-s7ja9r?file=package.json,src%2FApp.test.tsx
Steps to reproduce
Expected Behavior
No type error.
Actual Behavior
The text was updated successfully, but these errors were encountered: