Highcharts No Data To Display module updated (#13703)

* updated no-data-to-display to include initialisation

* added module version

* Updated version

* single line for authors
This commit is contained in:
Rowell 2017-01-07 20:17:00 +00:00 committed by Andy
parent eab7e87d19
commit 842e58faa1
3 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,4 @@
// Type definitions for Highcharts 4.2.5
// Type definitions for Highcharts 4.2.7
// Project: http://www.highcharts.com/
// Definitions by: Damiano Gambarotto <http://github.com/damianog>, Dan Lewi Harkestad <http://github.com/baltie>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@ -4,3 +4,5 @@ function test_NoDataToDisplay() {
chart.hideNoData();
chart.showNoData("Custom no data message");
}
HighchartsNoDataToDisplay(Highcharts);

View File

@ -1,9 +1,9 @@
// Type definitions for Highcharts No Data to Display
// Type definitions for Highcharts No Data to Display 4.2.7
// Project: http://www.highcharts.com/
// Definitions by: Andrey Zolotin <http://github.com/nitoloz>
// Definitions by: Andrey Zolotin <http://github.com/nitoloz>, Rowell Heria <http://github.com/rowellx68>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as Hc from "highcharts";
import { Static } from "highcharts";
declare module "highcharts" {
interface ChartObject {
@ -28,3 +28,7 @@ declare module "highcharts" {
showNoData(message?: string): void;
}
}
declare var HighchartsNoDataToDisplay: (H: Static) => Static;
export = HighchartsNoDataToDisplay;
export as namespace HighchartsNoDataToDisplay;