-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
createSvgIcon type definitions are not packaged #14517
Comments
Created PR: #14518 |
I believe the problem was fixed at some point in next. |
@mgansler I recommend you patch those declarations locally. declare module "@material-ui/icons/utils/createSvgIcon" {
import SvgIcon from '@material-ui/core/SvgIcon';
declare function createSvgIcon(path: React.ComponentType, displayName: string): typeof SvgIcon;
export default createSvgIcon;
} We already fixed this for |
@mgansler Let us know if you can reproduce the problem with |
Sorry for the long delay, @next works just fine, but I will use a local declaration until 4.0.0 is released |
This is a follow up to #13974
Expected Behavior 🤔
I should be able to use
createSvgIcon
in tsx files.Current Behavior 😯
It is not possible to use the type definitions are not in the package
Steps to Reproduce 🕹
import createSvgIcon from "@material-ui/icons/utils/createSvgIcon"
Your Environment 🌎
The text was updated successfully, but these errors were encountered: