From 56aef5dca4502fb4a43bc0682e2f5005edbc4b1f Mon Sep 17 00:00:00 2001 From: Peter Zhang <913542647@qq.com> Date: Sun, 6 Aug 2017 01:58:15 +0800 Subject: [PATCH] Use a method signature instead of a property signature of function type. --- types/canvasjs/index.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/types/canvasjs/index.d.ts b/types/canvasjs/index.d.ts index 2534f66b2f..161afb7ac1 100644 --- a/types/canvasjs/index.d.ts +++ b/types/canvasjs/index.d.ts @@ -515,28 +515,28 @@ declare namespace CanvasJS { * After the event is triggered, the event related data is passed as a parameter to the assigned event handler. Parameters passed to the function are shown in the Event Object section below. * @param event a chart event */ - itemmouseover?: (event: ChartEvent) => void; + itemmouseover?(event: ChartEvent): void; /** * Sets the mousemove event handler for the legend, which is triggered when the user moves the mouse(input device) within a legend item. * When the event is triggered, the event related data is passed as a parameter to the assigned event handler. * Parameters passed to the function are shown in the Event Object section below. * @param event a chart event */ - itemmousemove?: (event: ChartEvent) => void; + itemmousemove?(event: ChartEvent): void; /** * Sets the mouseout event handler for the legend, which is triggered when the user moves the mouse pointer outside a legend item. * After the event is triggered, the event related data is passed as a parameter to the assigned event handler. * Parameters passed to the function are shown in the Event Object section below. * @param event a chart event */ - itemmouseout?: (event: ChartEvent) => void; + itemmouseout?(event: ChartEvent): void; /** * Sets the click event handler for the legend, which is triggered when the user clicks on a legend item. * After the event is triggered, the event related data is passed as a parameter to the assigned event handler. * Parameters passed to the function are shown in the Event Object section below. * @param event a chart event */ - itemclick?: (event: ChartEvent) => void; + itemclick?(event: ChartEvent): void; /** * Setting reversed property to true shows legend items in reverse order. * Default: false; @@ -1432,28 +1432,28 @@ declare namespace CanvasJS { * Parameter includes dataPoint and dataSeries corresponding to the event. * Default: null */ - click?: (event: ChartEvent) => void; + click?(event: ChartEvent): void; /** * Sets the mouseover event handler for dataSeries which is triggered when user moves Mouse Over a dataSeries. * Upon event, a parameter that contains event related data is sent to the assigned event handler. * Parameter includes dataPoint and dataSeries corresponding to the event. * Default: null */ - mouseover?: (event: ChartEvent) => void; + mouseover?(event: ChartEvent): void; /** * Sets the mousemove event handler for dataSeries which is triggered when user Moves mouse on a dataSeries. * Upon event, a parameter that contains event related data is sent to the assigned event handler. * Parameter includes dataPoint and dataSeries corresponding to the event. * Default: null */ - mousemove?: (event: ChartEvent) => void; + mousemove?(event: ChartEvent): void; /** * Sets the mouseout event handler for dataSeries which is triggered when user moves mouse out of a dataSeries. * Upon event, a parameter that contains event related data is sent to the assigned event handler. * Parameter includes dataPoint and dataSeries corresponding to the event. * Default: null */ - mouseout?: (event: ChartEvent) => void; + mouseout?(event: ChartEvent): void; } interface ChartDataSeriesOptions extends ChartDataCommon {