Skip to content

Commit 74ea049

Browse files
committed
fix types mismatch between core and cartesian
1 parent ce38fc3 commit 74ea049

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/__tests__/__snapshots__/documenter.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ Supported options:
316316
{
317317
"name": "point",
318318
"optional": true,
319-
"type": "((props: CartesianChartProps.TooltipPointRenderProps) => CartesianChartProps.TooltipPointFormatted)",
319+
"type": "((props: CartesianChartProps.TooltipPointRenderProps) => TooltipPointFormatted)",
320320
},
321321
{
322322
"name": "size",

src/cartesian-chart/interfaces.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,7 @@ export namespace CartesianChartProps {
177177
errorRanges: { low: number; high: number; series: CartesianChartProps.ErrorBarSeriesOptions }[];
178178
series: NonErrorBarSeriesOptions;
179179
}
180-
export interface TooltipPointFormatted {
181-
key?: React.ReactNode;
182-
value?: React.ReactNode;
183-
description?: React.ReactNode;
184-
expandable?: boolean;
185-
subItems?: ReadonlyArray<{ key: React.ReactNode; value: React.ReactNode }>;
186-
}
180+
export type TooltipPointFormatted = CoreTypes.TooltipPointFormatted;
187181

188182
export type LegendOptions = CoreTypes.BaseLegendOptions;
189183

0 commit comments

Comments
 (0)