Convert highcharts-modules-xxx.d.ts to highcharts/modules/xxx.d.ts and include in tsconfig.json

This commit is contained in:
Andy Hanson 2016-11-02 13:10:12 -07:00
parent b6e41e21ff
commit 1907cc359b
11 changed files with 24 additions and 24 deletions

View File

@ -0,0 +1 @@
HighchartsMore(Highcharts);

View File

@ -3,10 +3,6 @@
// Definitions by: Maciej Suchecki <http://github.com/mc-suchecki>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { Static } from "highcharts";
declare var HighchartsMore: (H: Static) => Static;
declare module "highcharts/highcharts-more" {
export = HighchartsMore;
}
declare var HighchartsMore: (H: Highcharts.Static) => Highcharts.Static;
export = HighchartsMore;
export as namespace HighchartsMore;

View File

@ -0,0 +1 @@
HighchartsBoost(Highcharts);

View File

@ -6,7 +6,5 @@
import { Static } from "highcharts";
declare var HighchartsBoost: (H: Static) => Static;
declare module "highcharts/modules/boost" {
export = HighchartsBoost;
}
export = HighchartsBoost;
export as namespace HighchartsBoost;

View File

@ -0,0 +1 @@
HighchartsExporting(Highcharts);

View File

@ -6,7 +6,5 @@
import { Static } from "highcharts";
declare var HighchartsExporting: (H: Static) => Static;
declare module "highcharts/modules/exporting" {
export = HighchartsExporting;
}
export = HighchartsExporting;
export as namespace HighchartsExporting;

View File

@ -1,6 +1,3 @@
/// <reference path="highcharts-modules-no-data-to-display.d.ts" />
/// <reference types="jquery" />
function test_NoDataToDisplay() {
var chart = $("#container").highcharts();
var chartHasData = chart.hasData();

View File

@ -0,0 +1 @@
HighchartsExporting(Highcharts);

View File

@ -6,7 +6,5 @@
import { Static } from "highcharts";
declare var HighchartsOfflineExporting: (H: Static) => Static;
declare module "highcharts/modules/offline-exporting" {
export = HighchartsOfflineExporting;
}
export = HighchartsOfflineExporting;
export as namespace HighchartsOfflineExporting;

View File

@ -14,9 +14,18 @@
},
"files": [
"index.d.ts",
"highstock.d.ts",
"highcharts-tests.ts",
"highcharts-modules-no-data-to-display-tests.ts",
"modules/boost.d.ts",
"modules/boost-tests.ts",
"modules/exporting.d.ts",
"modules/exporting-tests.ts",
"modules/no-data-to-display.d.ts",
"modules/no-data-to-display-tests.ts",
"modules/offline-exporting.d.ts",
"modules/offline-exporting-tests.ts",
"highcharts-more.d.ts",
"highcharts-more-tests.ts",
"highstock.d.ts",
"highstock-tests.ts"
]
}