callstack / callstack/react-theme-provider
TS doesn't see props after «styled()» of «withTheme(styled.button`...`)»
- Lingua principale
- JavaScript
- Stelle
- 467
- Fork
- 53
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Linking with https://github.com/callstack/linaria/issues/893
## Environment
* macOS Monterrey
* yarn 3 (PnP)
* TS 4.5.2
* "@linaria/core": "^3.0.0-beta.15",
* "@linaria/react": "^3.0.0-beta.15",
* "@linaria/babel-preset": "^3.0.0-beta.15",
* "@linaria/shaker": "^3.0.0-beta.15",
* "@linaria/webpack-loader": "^3.0.0-beta.16",
* "@callstack/react-theme-provider": "^3.0.7",
* bundler - storybook@6
* node 14.17.6
## Description
```ts
export const Select = () => (
);
const Button = withTheme(styled.button`
width: 100%;
`);
export const OptionButton = styled(Button)`
width: 50%;
`;
```


If I add Button directly - no error

If I remove `withTheme` - no error too

## Reproducible Demo
https://codesandbox.io/s/wild-grass-g4e0u?file=/src/App.tsx
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.