Merge pull request #13470 from hedleygois/master

[Amcharts]Removing implicit any
This commit is contained in:
Horiuchi_H
2016-12-27 18:24:01 +09:00
committed by GitHub
+5 -5
View File
@@ -31,7 +31,7 @@ declare namespace AmCharts {
function clear(): void;
/** Handle ready event */
function ready(Function): void;
function ready(f: Function): void;
/** Create chart by params. */
function makeChart(selector: string, params: any, delay?: number): AmChart;
@@ -44,7 +44,7 @@ declare namespace AmCharts {
* @param {string[]} types - Which chart types should call this method. Defaults to all
* if none is passed.
*/
function addInitHandler(handler: Function, types: string[]);
function addInitHandler(handler: Function, types: string[]): any;
/** AmPieChart class creates pie/donut chart. In order to display pie chart you need to set at least three properties - dataProvider, titleField and valueField.
@example
@@ -1035,7 +1035,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
bold - specifies if text is bold (true/false),
url - url
*/
addLabel(x: number|string, y: number|string, text: string, align: string, size?: number, color?: string, rotation?: number, alpha?: number, bold?: boolean, url?: string);
addLabel(x: number|string, y: number|string, text: string, align: string, size?: number, color?: string, rotation?: number, alpha?: number, bold?: boolean, url?: string): any;
/** Adds a legend to the chart.
By default, you don't need to create div for your legend, however if you want it to be positioned in some different way, you can create div anywhere you want and pass id or reference to your div as a second parameter.
(NOTE: This method will not work on StockPanel.)
@@ -2597,7 +2597,7 @@ Your function should return string.*/
libs: Object;
menu: Object;
config: any;
capture(config: any, callback: () => void);
toJPG(config: any, callback: (config:any) => void);
capture(config: any, callback: () => void): any;
toJPG(config: any, callback: (config:any) => void): any;
}
}