-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Convert to typescript #5
Comments
Hello @crashnick16 . Thank you for your interest in our product. We haven't yet used Typescript in our React products and we can't really help you with this issue. Best, |
@crashnick16 @einazare I have ported version 1.2.0 of this project to TypeScript at https://github.com/Slessi/material-dashboard-react-ts if either of you are interested It is worth noting that there are some slight changes to dependencies, mostly notably using Only issue I noticed was the card header clipping mentioned in #26 but I fixed it with |
Hello @Slessi , Thank you for this. Once again thank you, |
Cool, drop a message if you have any questions :) |
This dashboard project is also written in typescript: The latest Material UI Dashboard is a bit different: I've converted it to Typescript here: |
There is no need to rewrite all project in TypeScript, better to add definition types near components, or other files that are used, or create the definitions separately in https://github.com/DefinitelyTyped/DefinitelyTyped |
I am looking to convert this template to typescript but I did not manage to get it working yet.
I started off with ChartCard.jsx file but I keep getting errors like:
Type '{ card: { display: string; position: string; width: string; margin: string; boxShadow: string; bo...' provides no match for the signature '(theme: Theme): Record<"card" | "cardHeader" | "cardTitle" | "cardContent" | "cardCategory" | "cardStats" | "cardActions" | "cardStatsLink" | "cardStatsIcon" | "orangeCardHeader" | "greenCardHeader" | "redCardHeader" | "blueCardHeader" | "purpleCardHeader" | "warningCardStatsIcon" | "primaryCardStatsIcon" | "dangerCardStatsIcon" | "successCardStatsIcon" | "infoCardStatsIcon" | "roseCardStatsIcon" | "grayCardStatsIcon", CSSProperties>'.
Any ideas?
Thanks,
Nick
The text was updated successfully, but these errors were encountered: