-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
index.d.ts file minor update for mui v5 #473
Comments
Nice job @neporshiso I'll get this published asap |
Is this merged yet? |
This issue is fixed in #474 and published as |
This issue is fixed in #474 and published as |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey Hossein -
Inside the index.d.ts file for notistack, the Transition Component type in the SnackbarProps interface is currently, TransitionComponent?: React.ComponentType.
However, in material-ui v5, https://github.com/mui/material-ui/blob/master/packages/mui-material/src/Snackbar/Snackbar.d.ts#L100-L102, it's TransitionComponent?: React.JSXElementConstructor<TransitionProps & { children: React.ReactElement<any, any> }>.
Could this be updated to TransitionComponent?: React.ComponentType | React.JSXElementConstructor<TransitionProps & { children: React.ReactElement<any, any> }>;
for compatibility with mui v4 and mui v5 projects?
The text was updated successfully, but these errors were encountered: