From ece9ce0c86b92cdbf4a886db934a293901be4243 Mon Sep 17 00:00:00 2001 From: Nora <72460825+noraleonte@users.noreply.github.com> Date: Mon, 10 Jun 2024 13:23:57 +0300 Subject: [PATCH] [charts] Improve themeAugmentation typing (#13433) --- .../src/themeAugmentation/components.d.ts | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/x-charts/src/themeAugmentation/components.d.ts b/packages/x-charts/src/themeAugmentation/components.d.ts index c9cc3dd4f2fa..f08071da49ac 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']; @@ -68,5 +68,5 @@ export interface ChartsComponents { } declare module '@mui/material/styles' { - interface Components extends ChartsComponents {} + interface Components extends ChartsComponents {} }