Add FusionCharts definition for Charts, Widgets, Maps, PowerCharts and themes

- Also fixed the linting issue.
This commit is contained in:
Rohit Kumar
2017-01-31 18:01:53 +05:30
parent b216e18bf5
commit 8f873ba356
18 changed files with 122 additions and 7 deletions
+2
View File
@@ -1,3 +1,5 @@
import * as FusionCharts from "fusioncharts";
FusionCharts.addEventListener('ready',(eventObject)=>{
eventObject.stopPropagation();
});
+7
View File
@@ -0,0 +1,7 @@
interface FusionCharts {
type: string;
}
declare var charts: (H: FusionCharts) => FusionCharts;
export = charts;
export as namespace charts;
+7
View File
@@ -0,0 +1,7 @@
interface FusionCharts {
type: string;
}
declare var gantt: (H: FusionCharts) => FusionCharts;
export = gantt;
export as namespace gantt;
+7
View File
@@ -0,0 +1,7 @@
interface FusionCharts {
type: string;
}
declare var maps: (H: FusionCharts) => FusionCharts;
export = maps;
export as namespace maps;
+7
View File
@@ -0,0 +1,7 @@
interface FusionCharts {
type: string;
}
declare var powercharts: (H: FusionCharts) => FusionCharts;
export = powercharts;
export as namespace powercharts;
+7
View File
@@ -0,0 +1,7 @@
interface FusionCharts {
type: string;
}
declare var ssgrid: (H: FusionCharts) => FusionCharts;
export = ssgrid;
export as namespace ssgrid;
+7
View File
@@ -0,0 +1,7 @@
interface FusionCharts {
type: string;
}
declare var treemap: (H: FusionCharts) => FusionCharts;
export = treemap;
export as namespace treemap;
+7
View File
@@ -0,0 +1,7 @@
interface FusionCharts {
type: string;
}
declare var widgets: (H: FusionCharts) => FusionCharts;
export = widgets;
export as namespace widgets;
+7
View File
@@ -0,0 +1,7 @@
interface FusionCharts {
type: string;
}
declare var zoomscatter: (H: FusionCharts) => FusionCharts;
export = zoomscatter;
export as namespace zoomscatter;
+7 -7
View File
@@ -1,6 +1,6 @@
// Type definitions for FusionCharts 3.11.2
// Type definitions for fusioncharts 3.11
// Project: http://www.fusioncharts.com
// Definitions by: Shivaraj KV <https://github.com/shivarajkv>
// Definitions by: Rohit Kumar <https://github.com/rohitkr>, Shivaraj KV <https://github.com/shivarajkv>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -136,9 +136,9 @@ declare namespace FusionCharts {
outputTo(callback: (message: any) => any): void;
enable(state:any,outputTo?:(message: any) =>any,outputFormat?:any):void
enable(state: any, outputTo?: (message: any) => any, outputFormat?: any): void;
enableFirebugLite():any;
enableFirebugLite(): any;
}
interface FusionCharts {
@@ -154,7 +154,7 @@ declare namespace FusionCharts {
configureLink(param: {} | any[], level?: number): void;
setChartAttribute(attributes: ChartObject | String, value?: string): void;
setChartAttribute(attributes: ChartObject | string, value?: string): void;
getChartAttribute(attribute?: string | string[]): ChartObject;
@@ -273,7 +273,7 @@ declare namespace FusionCharts {
formatNumber(num: number, type?: string, config?: {}): Element;
setCurrentRenderer(name: string): void
setCurrentRenderer(name: string): void;
getCurrentRenderer(): string;
@@ -285,7 +285,7 @@ declare namespace FusionCharts {
options: {};
debugger:Debugger;
debugger: Debugger;
}
+7
View File
@@ -0,0 +1,7 @@
interface FusionCharts {
type: string;
}
declare var usa: (H: FusionCharts) => FusionCharts;
export = usa;
export as namespace usa;
+7
View File
@@ -0,0 +1,7 @@
interface FusionCharts {
type: string;
}
declare var world: (H: FusionCharts) => FusionCharts;
export = world;
export as namespace world;
+7
View File
@@ -0,0 +1,7 @@
interface FusionCharts {
type: string;
}
declare var carbon: (H: FusionCharts) => FusionCharts;
export = carbon;
export as namespace carbon;
+7
View File
@@ -0,0 +1,7 @@
interface FusionCharts {
type: string;
}
declare var fint: (H: FusionCharts) => FusionCharts;
export = fint;
export as namespace fint;
+7
View File
@@ -0,0 +1,7 @@
interface FusionCharts {
type: string;
}
declare var ocean: (H: FusionCharts) => FusionCharts;
export = ocean;
export as namespace ocean;
+7
View File
@@ -0,0 +1,7 @@
interface FusionCharts {
type: string;
}
declare var zune: (H: FusionCharts) => FusionCharts;
export = zune;
export as namespace zune;
+14
View File
@@ -18,6 +18,20 @@
},
"files": [
"index.d.ts",
"fusioncharts.charts.d.ts",
"fusioncharts.powercharts.d.ts",
"fusioncharts.widgets.d.ts",
"fusioncharts.maps.d.ts",
"fusioncharts.zoomscatter.d.ts",
"fusioncharts.ssgrid.d.ts",
"fusioncharts.gantt.d.ts",
"fusioncharts.treemap.d.ts",
"maps/fusioncharts.usa.d.ts",
"maps/fusioncharts.world.d.ts",
"themes/fusioncharts.theme.carbon.d.ts",
"themes/fusioncharts.theme.fint.d.ts",
"themes/fusioncharts.theme.ocean.d.ts",
"themes/fusioncharts.theme.zune.d.ts",
"fusioncharts-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "../tslint.json" }