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
It seems that typescript has complicates while comparing generic types fed with type variables. For those who need quick patch, I left a rough solution here. Check this out and use wisely.
/* Patch LibraryManagedAttributes type in jsx-namespace.d.ts (which can be found in node_modules/@ emotion/react/types) */typeLibraryManagedAttributes<C,P>=((Pextendsunknown ? WithConditionalCSSProp<P> : {})|{})&ReactJSXLibraryManagedAttributes<C,P>
I'll do more research on this and will come back with well organized patch maybe in this weekend. However, If there is someone interested and has some time to work on this, I wouldn't mind someone else do the fix instead of me.
Current behavior:
type Error Occurs after v11.13.3
Expected behavior:
Type Error is fixed , if it's not error. is there any method to solve this type error?
Environment information:
react
version: 18.3.1@emotion/react
version: 11.13.3The text was updated successfully, but these errors were encountered: