Merge pull request #14870 from diogosantana/patch-1

Update chart.js Chart constructor from v2.4.0
This commit is contained in:
Yui
2017-03-13 18:58:58 -07:00
committed by GitHub
+6 -1
View File
@@ -3,9 +3,14 @@
// Definitions by: Alberto Nuti <https://github.com/anuti>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="jquery" />
declare class Chart {
static readonly Chart: typeof Chart;
constructor(context: CanvasRenderingContext2D | HTMLCanvasElement, options: Chart.ChartConfiguration);
constructor(
context: string | JQuery | CanvasRenderingContext2D | HTMLCanvasElement | string[] | CanvasRenderingContext2D[] | HTMLCanvasElement[],
options: Chart.ChartConfiguration
);
config: Chart.ChartConfiguration;
data: Chart.ChartData;
destroy: () => {};