Skip to content

Commit

Permalink
improve themeAugmentation typing
Browse files Browse the repository at this point in the history
  • Loading branch information
noraleonte committed Jun 10, 2024
1 parent 2305117 commit a6c15d8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/x-charts/src/themeAugmentation/components.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ComponentsProps, ComponentsOverrides } from '@mui/material/styles';

export interface ChartsComponents {
export interface ChartsComponents<Theme = unknown> {
MuiChartsAxis?: {
defaultProps?: ComponentsProps['MuiChartsAxis'];
styleOverrides?: ComponentsOverrides['MuiChartsAxis'];
styleOverrides?: ComponentsOverrides<Theme>['MuiChartsAxis'];
};
MuiChartsXAxis?: {
defaultProps?: ComponentsProps['MuiChartsXAxis'];
Expand All @@ -13,22 +13,22 @@ export interface ChartsComponents {
};
MuiChartsAxisHighlight?: {
defaultProps?: ComponentsProps['MuiChartsAxisHighlight'];
styleOverrides?: ComponentsOverrides['MuiChartsAxisHighlight'];
styleOverrides?: ComponentsOverrides<Theme>['MuiChartsAxisHighlight'];
};
MuiChartsClipPath?: {
defaultProps?: ComponentsProps['MuiChartsClipPath'];
};
MuiChartsGrid?: {
defaultProps?: ComponentsProps['MuiChartsGrid'];
styleOverrides?: ComponentsOverrides['MuiChartsGrid'];
styleOverrides?: ComponentsOverrides<Theme>['MuiChartsGrid'];
};
MuiChartsLegend?: {
defaultProps?: ComponentsProps['MuiChartsLegend'];
styleOverrides?: ComponentsOverrides['MuiChartsLegend'];
styleOverrides?: ComponentsOverrides<Theme>['MuiChartsLegend'];
};
MuiChartsTooltip?: {
defaultProps?: ComponentsProps['MuiChartsTooltip'];
styleOverrides?: ComponentsOverrides['MuiChartsTooltip'];
styleOverrides?: ComponentsOverrides<Theme>['MuiChartsTooltip'];
};
MuiChartsSurface?: {
defaultProps?: ComponentsProps['MuiChartsSurface'];
Expand All @@ -38,26 +38,26 @@ export interface ChartsComponents {
};
MuiBarElement?: {
defaultProps?: ComponentsProps['MuiBarElement'];
styleOverrides?: ComponentsOverrides['MuiBarElement'];
styleOverrides?: ComponentsOverrides<Theme>['MuiBarElement'];
};
MuiBarLabel?: {
defaultProps?: ComponentsProps['MuiBarLabel'];
styleOverrides?: ComponentsOverrides['MuiBarLabel'];
styleOverrides?: ComponentsOverrides<Theme>['MuiBarLabel'];
};
MuiLineChart?: {
defaultProps?: ComponentsProps['MuiLineChart'];
};
MuiAreaElement?: {
defaultProps?: ComponentsProps['MuiAreaElement'];
styleOverrides?: ComponentsOverrides['MuiAreaElement'];
styleOverrides?: ComponentsOverrides<Theme>['MuiAreaElement'];
};
MuiLineElement?: {
defaultProps?: ComponentsProps['MuiLineElement'];
styleOverrides?: ComponentsOverrides['MuiLineElement'];
styleOverrides?: ComponentsOverrides<Theme>['MuiLineElement'];
};
MuiMarkElement?: {
defaultProps?: ComponentsProps['MuiMarkElement'];
styleOverrides?: ComponentsOverrides['MuiMarkElement'];
styleOverrides?: ComponentsOverrides<Theme>['MuiMarkElement'];
};
MuiScatterChart?: {
defaultProps?: ComponentsProps['MuiScatterChart'];
Expand Down

0 comments on commit a6c15d8

Please sign in to comment.