Update chart.js Chart constructor from v2.4.0

Version 2.4.0 new Chart constructor signature

https://github.com/chartjs/Chart.js/commit/4a5b5a0e7eba85ca44f658375cb0c78e6af93e5c
This commit is contained in:
Diogo Sant'Ana
2017-02-25 21:46:31 -03:00
committed by GitHub
parent 7132f08a39
commit 01ad861c95
+4 -1
View File
@@ -5,7 +5,10 @@
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: () => {};