Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Jul 1, 2024
1 parent 585bf47 commit 198568f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/x-charts/src/BarChart/useBarChartProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const useBarChartProps = (props: BarChartProps) => {
slotProps,
};

const tooltipProps: ChartsTooltipProps = {
const tooltipProps: ChartsTooltipProps<'bar'> = {
...tooltip,
slots,
slotProps,
Expand Down
2 changes: 1 addition & 1 deletion packages/x-charts/src/LineChart/useLineChartProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export const useLineChartProps = (props: LineChartProps) => {
slotProps,
};

const tooltipProps: ChartsTooltipProps = {
const tooltipProps: ChartsTooltipProps<'line'> = {
...tooltip,
slots,
slotProps,
Expand Down
2 changes: 1 addition & 1 deletion packages/x-charts/src/ScatterChart/useScatterChartProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const useScatterChartProps = (props: ScatterChartProps) => {
...axisHighlight,
};

const tooltipProps: ChartsTooltipProps = {
const tooltipProps: ChartsTooltipProps<'scatter'> = {
trigger: 'item' as const,
...tooltip,
slots,
Expand Down

0 comments on commit 198568f

Please sign in to comment.