Theme: TypeScript support missing for palette.action properties #20069
Labels
good first issue
Great for first contributions. Enable to learn the contribution process.
package: material-ui
Specific to @mui/material
typescript
Current Behavior 😯
The following properties of
palette.action
are exported in src/styles/createPalette.js, but the related TypeScript declaration file (createPalette.d.ts) is missing some of them:https://github.com/mui-org/material-ui/blob/e02abe51ce16ad1cd3d0af95c77e76d5625c82e8/packages/material-ui/src/styles/createPalette.js#L33-L51
https://github.com/mui-org/material-ui/blob/e02abe51ce16ad1cd3d0af95c77e76d5625c82e8/packages/material-ui/src/styles/createPalette.d.ts#L13-L20
selectedOpacity
,disabledOpacity
,focus
,focusOpacity
,activatedOpacity
are missing.Expected Behavior 🤔
The TypeScript definition for
TypeAction
should look like this:Context 🔦
As the TypeScript support is missing, the affected properties cannot be used in strict TypeScript environments. I can try to create an PR for that, but I’m new to Material-UI, so I’m not exactly sure if this is a mistake or by purpose.
Your Environment 🌎
The text was updated successfully, but these errors were encountered: