-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make <reference types="styled-jsx" /> include global.d.ts? #825
Comments
I managed to make it work using Or could we explicitly export |
🎉 This issue has been resolved in version 5.1.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@addlistener using Next 13.x and still facing same issue, For now created import 'react';
declare module 'react' {
interface StyleHTMLAttributes<T> extends React.HTMLAttributes<T> {
jsx?: boolean;
global?: boolean;
}
} Are there any better option than that? |
Have you tried the following?
|
We cannot do
<reference types="styled-jsx/global" />
. Andimport 'styled-jsx/global';
does not work either.I believe it's a huge pain point for people to use styled-jsx smoothly.
#90
We have to write a duplicated global.d.ts for the typescript code to work. Next.js do it this way. It does not make sense for people to do it every time they want to use it.
The text was updated successfully, but these errors were encountered: