From a6c15d89cc2ab21b5c285f9e76bcf9a005c534f4 Mon Sep 17 00:00:00 2001 From: noraleonte Date: Mon, 10 Jun 2024 11:54:46 +0300 Subject: [PATCH] improve themeAugmentation typing --- .../src/themeAugmentation/components.d.ts | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/x-charts/src/themeAugmentation/components.d.ts b/packages/x-charts/src/themeAugmentation/components.d.ts index c9cc3dd4f2fa..b55c79fe3fb4 100644 --- a/packages/x-charts/src/themeAugmentation/components.d.ts +++ b/packages/x-charts/src/themeAugmentation/components.d.ts @@ -1,9 +1,9 @@ import { ComponentsProps, ComponentsOverrides } from '@mui/material/styles'; -export interface ChartsComponents { +export interface ChartsComponents { MuiChartsAxis?: { defaultProps?: ComponentsProps['MuiChartsAxis']; - styleOverrides?: ComponentsOverrides['MuiChartsAxis']; + styleOverrides?: ComponentsOverrides['MuiChartsAxis']; }; MuiChartsXAxis?: { defaultProps?: ComponentsProps['MuiChartsXAxis']; @@ -13,22 +13,22 @@ export interface ChartsComponents { }; MuiChartsAxisHighlight?: { defaultProps?: ComponentsProps['MuiChartsAxisHighlight']; - styleOverrides?: ComponentsOverrides['MuiChartsAxisHighlight']; + styleOverrides?: ComponentsOverrides['MuiChartsAxisHighlight']; }; MuiChartsClipPath?: { defaultProps?: ComponentsProps['MuiChartsClipPath']; }; MuiChartsGrid?: { defaultProps?: ComponentsProps['MuiChartsGrid']; - styleOverrides?: ComponentsOverrides['MuiChartsGrid']; + styleOverrides?: ComponentsOverrides['MuiChartsGrid']; }; MuiChartsLegend?: { defaultProps?: ComponentsProps['MuiChartsLegend']; - styleOverrides?: ComponentsOverrides['MuiChartsLegend']; + styleOverrides?: ComponentsOverrides['MuiChartsLegend']; }; MuiChartsTooltip?: { defaultProps?: ComponentsProps['MuiChartsTooltip']; - styleOverrides?: ComponentsOverrides['MuiChartsTooltip']; + styleOverrides?: ComponentsOverrides['MuiChartsTooltip']; }; MuiChartsSurface?: { defaultProps?: ComponentsProps['MuiChartsSurface']; @@ -38,26 +38,26 @@ export interface ChartsComponents { }; MuiBarElement?: { defaultProps?: ComponentsProps['MuiBarElement']; - styleOverrides?: ComponentsOverrides['MuiBarElement']; + styleOverrides?: ComponentsOverrides['MuiBarElement']; }; MuiBarLabel?: { defaultProps?: ComponentsProps['MuiBarLabel']; - styleOverrides?: ComponentsOverrides['MuiBarLabel']; + styleOverrides?: ComponentsOverrides['MuiBarLabel']; }; MuiLineChart?: { defaultProps?: ComponentsProps['MuiLineChart']; }; MuiAreaElement?: { defaultProps?: ComponentsProps['MuiAreaElement']; - styleOverrides?: ComponentsOverrides['MuiAreaElement']; + styleOverrides?: ComponentsOverrides['MuiAreaElement']; }; MuiLineElement?: { defaultProps?: ComponentsProps['MuiLineElement']; - styleOverrides?: ComponentsOverrides['MuiLineElement']; + styleOverrides?: ComponentsOverrides['MuiLineElement']; }; MuiMarkElement?: { defaultProps?: ComponentsProps['MuiMarkElement']; - styleOverrides?: ComponentsOverrides['MuiMarkElement']; + styleOverrides?: ComponentsOverrides['MuiMarkElement']; }; MuiScatterChart?: { defaultProps?: ComponentsProps['MuiScatterChart'];