From c14a1c5e2eb18607827408463dfbda1b9c4b9f03 Mon Sep 17 00:00:00 2001 From: LeoTindall Date: Wed, 29 Nov 2017 12:09:45 -0600 Subject: [PATCH] [chart.js] Allow plugins options to be of any type. --- types/chart.js/chart.js-tests.ts | 3 ++- types/chart.js/index.d.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/types/chart.js/chart.js-tests.ts b/types/chart.js/chart.js-tests.ts index 9ec7fde23f..d1e86fd317 100644 --- a/types/chart.js/chart.js-tests.ts +++ b/types/chart.js/chart.js-tests.ts @@ -44,7 +44,8 @@ const chart: Chart = new Chart(new CanvasRenderingContext2D(), { zeroLineBorderDashOffset: 2 } }] - } + }, + plugins: { arbitraryPlugin: {option: "value"} } } }); chart.update(); diff --git a/types/chart.js/index.d.ts b/types/chart.js/index.d.ts index 049488f8db..7d18eb39a8 100644 --- a/types/chart.js/index.d.ts +++ b/types/chart.js/index.d.ts @@ -176,6 +176,8 @@ declare namespace Chart { cutoutPercentage?: number; circumference?: number; rotation?: number; + // Plugins can require any options + plugins?: any; } interface ChartFontOptions {