From 4936e07d7ce27f95e46845fa471c778de29a0a5b Mon Sep 17 00:00:00 2001 From: Daniel Luz Date: Sat, 2 Sep 2017 18:47:10 -0300 Subject: [PATCH] Update chart.js constructor declaration Any array-like value is accepted, not just jQuery; also, string[] is not actually supported --- types/chart.js/index.d.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/types/chart.js/index.d.ts b/types/chart.js/index.d.ts index f04fbc1119..34f9f04020 100644 --- a/types/chart.js/index.d.ts +++ b/types/chart.js/index.d.ts @@ -7,12 +7,10 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -/// - declare class Chart { static readonly Chart: typeof Chart; constructor( - context: string | JQuery | CanvasRenderingContext2D | HTMLCanvasElement | string[] | CanvasRenderingContext2D[] | HTMLCanvasElement[], + context: string | CanvasRenderingContext2D | HTMLCanvasElement | ArrayLike, options: Chart.ChartConfiguration ); config: Chart.ChartConfiguration;