From 4462b34e0914ea7d8c850e15fdcf1bdbc00b67c3 Mon Sep 17 00:00:00 2001 From: makino Date: Wed, 7 Mar 2018 19:10:40 +0900 Subject: [PATCH 1/2] Added plugins option property to ChartOption --- types/chart.js/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/chart.js/index.d.ts b/types/chart.js/index.d.ts index 338e38e223..45d9ea8c0b 100644 --- a/types/chart.js/index.d.ts +++ b/types/chart.js/index.d.ts @@ -198,6 +198,8 @@ declare namespace Chart { cutoutPercentage?: number; circumference?: number; rotation?: number; + // Plugins can require any options + plugins?: any; } interface ChartFontOptions { From fec9ddca984cd5af89b0fe77c15b0705c41ec34b Mon Sep 17 00:00:00 2001 From: makino Date: Fri, 9 Mar 2018 13:49:02 +0900 Subject: [PATCH 2/2] Defined plugins option more precisely. --- types/chart.js/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/chart.js/index.d.ts b/types/chart.js/index.d.ts index 45d9ea8c0b..c637164d30 100644 --- a/types/chart.js/index.d.ts +++ b/types/chart.js/index.d.ts @@ -199,7 +199,7 @@ declare namespace Chart { circumference?: number; rotation?: number; // Plugins can require any options - plugins?: any; + plugins?: { [plugin: string]: any }; } interface ChartFontOptions {