Using extended styles with styled-components breaks types #44246
Labels
package: styled-engine-sc
Specific to styled-components
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
typescript
Steps to reproduce
Link to live example: https://stackblitz.com/edit/vitejs-vite-afbuyz?file=src%2FApp.tsx&view=editor
Steps:
Current behavior
Expected behavior
The types are correct even if extended styles are used.
Context
The types change when using extended styles.
styled
extended
Your environment
npx @mui/envinfo
I used Chrome: 130.0.6723.70
tsc --showConfig
Search keywords: styled-engine-sc styled-components TypeScript
The text was updated successfully, but these errors were encountered: