Skip to content

Commit 202837e

Browse files
committed
fix: export missing types from core/interfaces
1 parent 5cd1fb6 commit 202837e

File tree

2 files changed

+41
-5
lines changed

2 files changed

+41
-5
lines changed

src/core/interfaces.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
import type Highcharts from "highcharts";
55

6-
import { ChartSeriesMarkerType } from "../internal/components/series-marker";
7-
import { NonCancelableEventHandler } from "../internal/events";
6+
import { type ChartSeriesMarkerType } from "../internal/components/series-marker";
7+
import { type NonCancelableEventHandler } from "../internal/events";
88

99
// All charts take `highcharts` instance, that can be served statically or dynamically.
1010
// Although it has to be of type Highcharts, the TS type we use is `null | object`, so

src/internal-do-not-use/core-chart.tsx

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
import { InternalCoreChart } from "../core/chart-core";
5-
import { CoreChartProps } from "../core/interfaces";
5+
import type * as CoreInterfaces from "../core/interfaces";
66
import useBaseComponent from "../internal/base-component/use-base-component";
77
import { applyDisplayName } from "../internal/utils/apply-display-name";
88

9-
function CoreChart(props: CoreChartProps) {
9+
function CoreChart(props: CoreInterfaces.CoreChartProps) {
1010
const baseComponentProps = useBaseComponent("ChartCore", { props: {} });
1111
return <InternalCoreChart {...props} {...baseComponentProps} />;
1212
}
@@ -15,4 +15,40 @@ applyDisplayName(CoreChart, "CoreChart");
1515

1616
export default CoreChart;
1717

18-
export type { CoreChartProps };
18+
export namespace CoreChartTypes {
19+
export type BaseChartOptions = CoreInterfaces.BaseChartOptions;
20+
export type BaseFilterOptions = CoreInterfaces.BaseFilterOptions;
21+
export type BaseI18nStrings = CoreInterfaces.BaseI18nStrings;
22+
export type BaseLegendOptions = CoreInterfaces.BaseLegendOptions;
23+
export type BaseNoDataOptions = CoreInterfaces.BaseNoDataOptions;
24+
25+
export type CartesianI18nStrings = CoreInterfaces.CartesianI18nStrings;
26+
export type PieI18nStrings = CoreInterfaces.PieI18nStrings;
27+
export type CoreI18nStrings = CoreInterfaces.CoreI18nStrings;
28+
29+
export type CoreCartesianOptions = CoreInterfaces.CoreCartesianOptions;
30+
export type CoreChartAPI = CoreInterfaces.CoreChartAPI;
31+
export type CoreChartProps = CoreInterfaces.CoreChartProps;
32+
export type CoreFooterOptions = CoreInterfaces.CoreFooterOptions;
33+
export type CoreHeaderOptions = CoreInterfaces.CoreHeaderOptions;
34+
export type CoreLegendItem = CoreInterfaces.CoreLegendItem;
35+
export type CoreLegendOptions = CoreInterfaces.CoreLegendOptions;
36+
37+
export type CoreTooltipContent = CoreInterfaces.CoreTooltipContent;
38+
export type CoreTooltipOptions = CoreInterfaces.CoreTooltipOptions;
39+
export type GetLegendTooltipContent = CoreInterfaces.GetLegendTooltipContent;
40+
export type GetLegendTooltipContentProps = CoreInterfaces.GetLegendTooltipContentProps;
41+
export type GetTooltipContent = CoreInterfaces.GetTooltipContent;
42+
export type GetTooltipContentProps = CoreInterfaces.GetTooltipContentProps;
43+
export type TooltipContent = CoreInterfaces.TooltipContent;
44+
export type TooltipContentItem = CoreInterfaces.TooltipContentItem;
45+
export type TooltipPointFormatted = CoreInterfaces.TooltipPointFormatted;
46+
export type TooltipPointProps = CoreInterfaces.TooltipPointProps;
47+
export type TooltipSlotProps = CoreInterfaces.TooltipSlotProps;
48+
49+
export type InternalChartOptions = CoreInterfaces.InternalChartOptions;
50+
export type InternalXAxisOptions = CoreInterfaces.InternalXAxisOptions;
51+
export type InternalYAxisOptions = CoreInterfaces.InternalYAxisOptions;
52+
53+
export type ChartHighlightProps = CoreInterfaces.ChartHighlightProps;
54+
}

0 commit comments

Comments
 (0)