Closed
Description
Now that react 19 is out this is a burning issue!
React 19 removed global JSX
namespace from it's typings. As a result any styled component is typed as any
. #1420 addresses this issue.
As a side note, the repo feels dead rn. Nothing was done in 9 months. Has linaria ran out of steam? Should we move on to a better supported solution?
As a workaround:
declare global {
namespace JSX {
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
}
}