From c8d7cc53db69ca15ed2516abbd010b8fecca4149 Mon Sep 17 00:00:00 2001 From: Adam Zmenak Date: Thu, 10 Aug 2017 15:45:23 -0400 Subject: [PATCH 1/2] Fix interface for update method --- types/highcharts/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/highcharts/index.d.ts b/types/highcharts/index.d.ts index f8ae716c13..1b7537cc53 100644 --- a/types/highcharts/index.d.ts +++ b/types/highcharts/index.d.ts @@ -6384,7 +6384,7 @@ declare namespace Highcharts { * @param [boolean] redraw Whether to redraw the chart. Defaults to true. * @since 5.0.0 */ - update(options: ChartOptions, redraw?: boolean): void; + update(options: Options, redraw?: boolean): void; /** * This method is deprecated as of 2.0.1. Updating the chart position after a move operation is no longer necessary. * @since 1.2.5 From 8e3575472cdb995fabbc4a25fd7c05a8bea01e6b Mon Sep 17 00:00:00 2001 From: Adam Zmenak Date: Mon, 14 Aug 2017 13:43:20 -0400 Subject: [PATCH 2/2] Update doc comment --- types/highcharts/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/highcharts/index.d.ts b/types/highcharts/index.d.ts index 1b7537cc53..7763c2bd07 100644 --- a/types/highcharts/index.d.ts +++ b/types/highcharts/index.d.ts @@ -6380,7 +6380,7 @@ declare namespace Highcharts { * found, the first item is updated. So for example, running chart.update with a series item without an id, will cause * the existing chart's first series to be updated. * See also the responsive option set. Switching between responsive.rules basically runs chart.update under the hood. - * @param {ChartOptions} option A configuration object for the new chart options as defined in the options section of the API. + * @param {Options} option A configuration object for the new chart options as defined in the options section of the API. * @param [boolean] redraw Whether to redraw the chart. Defaults to true. * @since 5.0.0 */