Open MiguelG97 opened 1 month ago
apparently doing this import fixed the issue:
import type {} from "@mui/x-data-grid/themeAugmentation";
However, I don't think we should need to do that extra step as is either not documented
Actually, per https://github.com/mui/material-ui/issues/40996, I think that we should update the docs in MUI X and remove all mentions of TypeScript v3: https://github.com/search?q=org%3Amui+%22TypeScript+3.x%22&type=code.
Seeing this:
triggered me.
Moved to #14239
If someone changes how we phrase the theme augmentation, please do the same for the other X components :pray:
I'll add this to the board, so we don't lose track of this! @samuelsycamore FYI
:warning: This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.
@MiguelG97: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.
I see, my bad. I believe it would help if you guys include this: https://mui.com/x/react-data-grid/getting-started/#typescript
in the "datagrid > style" section too
I believe it would help if you guys include this:
https://mui.com/x/react-data-grid/style/#theme-header-and-pinned-sections right, yeah, this sounds wise 👍. I think that we can consider this the root problem. So updating this docs to also cover TypeScript should do it.
Latest version
Steps to reproduce
Link to live example: (required)
Steps: import { createTheme } from '@mui/material/styles';
The createTheme does not contain a field for MuiDataGrid
Current behavior
The createTheme does not contain a field for MuiDataGrid
Expected behavior
intellisense enable and field available
Context
MuiDataGrid field is not enable nor available
Your environment
Search keywords: MuiDataGrid