Skip to content

Commit 8c72a18

Browse files
authored
fix: add chart object to type declarations
2 parents edb06ff + 40cd044 commit 8c72a18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

types/highcharts-vue.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ export interface ChartProps {
1313

1414
declare module '@vue/runtime-core' {
1515
export interface GlobalComponents {
16-
HighchartsVue: DefineComponent<ChartProps, {}, {}>
16+
HighchartsVue: DefineComponent<ChartProps, { chart: Highcharts.Chart }, {}>
1717
}
1818
}
1919

2020
export type ChartUpdateArgs = [boolean, boolean, Highcharts.AnimationOptionsObject];
2121

22-
export const Chart: DefineComponent<ChartProps>;
22+
export const Chart: DefineComponent<ChartProps, { chart: Highcharts.Chart }>;
2323

2424
export interface HCVueInstallOptions {
2525
tagName?: string;
2626
highcharts?: typeof Highcharts;
2727
}
2828

29-
export default function install(app: App, options?: HCVueInstallOptions): void;
29+
export default function install(app: App, options?: HCVueInstallOptions): void;

0 commit comments

Comments
 (0)