From bd2b99f14e0f558eb35cb3fe7c48b10baa2f063d Mon Sep 17 00:00:00 2001 From: Victor Date: Fri, 7 Oct 2016 00:31:58 +0300 Subject: [PATCH] FChart.js: fixed missing config (#11796) --- chart.js/chart.js.d.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/chart.js/chart.js.d.ts b/chart.js/chart.js.d.ts index 57389ee4ea19ff..a4ab16274735eb 100644 --- a/chart.js/chart.js.d.ts +++ b/chart.js/chart.js.d.ts @@ -379,7 +379,7 @@ interface TimeScale extends ChartScales { parser?: string | ((arg: any) => any); round?: string; tooltipFormat?: string; - unit?: TimeUnit; + unit?: string | TimeUnit; unitStepSize?: number; } @@ -390,11 +390,12 @@ interface RadialLinearScale { ticks?: TickOptions; } -declare var Chart: { - new (context: CanvasRenderingContext2D, options: ChartConfiguration): {}; +declare class Chart { + constructor (context: CanvasRenderingContext2D, options: ChartConfiguration); + config: ChartConfiguration; destroy: () => {}; - update: (duration: any, lazy: any) => {}; - render: (duration: any, lazy: any) => {}; + update: (duration?: any, lazy?: any) => {}; + render: (duration?: any, lazy?: any) => {}; stop: () => {}; resize: () => {}; clear: () => {}; @@ -407,4 +408,4 @@ declare var Chart: { defaults: { global: ChartOptions; } -}; +}