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
Current behavior:
When using Typescript 5 with "moduleResolution": "Bundler", the typing
for the css prop is not working properly, particularly with the theme type.
I have followed the documentation to override the Theme type including
using the following directive:
Current behavior:
When using Typescript 5 with
"moduleResolution": "Bundler"
, the typingfor the
css
prop is not working properly, particularly with the theme type.I have followed the documentation to override the Theme type including
using the following directive:
Typescript complains with an error like:
To reproduce:
issue template.
npm install && npm run start
Expected behavior:
There should be no type error. The type for the
theme
parameter should be the overridden one provided in the project.The issue is resolved by making the following change in css-prop.d.ts
It also looks like a similar change should be made to jsx-namespace.d.ts
Environment information:
Typescript
version: 5@emotion/react
version: 11.11.1The text was updated successfully, but these errors were encountered: