From 162d8bb7762c8f3e5b06579423562c19f02cccdd Mon Sep 17 00:00:00 2001 From: oosoloviov Date: Wed, 4 Jan 2017 22:59:18 +0200 Subject: [PATCH] Update index.ts (#13539) Adding this fild will solve the problem of module build failed: Error: Property 'defaults' does not exist on type 'typeof Chart'. And You can use this Chart.defaults.global in ts --- chart.js/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/chart.js/index.d.ts b/chart.js/index.d.ts index bf23a1cc52..aace24612d 100644 --- a/chart.js/index.d.ts +++ b/chart.js/index.d.ts @@ -392,6 +392,7 @@ interface RadialLinearScale { } declare class Chart { + static defaults: any; constructor (context: CanvasRenderingContext2D | HTMLCanvasElement, options: ChartConfiguration); config: ChartConfiguration; data: ChartData;