From 84b1d3f482483a877f5153570e67c03a3e532d79 Mon Sep 17 00:00:00 2001 From: Thomas Chandelle Date: Thu, 9 Nov 2017 11:27:34 +0100 Subject: [PATCH] Allow borderWidth and borderColor to be indexed Useful only for bar charts, see http://www.chartjs.org/docs/latest/charts/bar.html --- types/chart.js/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/chart.js/index.d.ts b/types/chart.js/index.d.ts index e16b87aa0e..ef9e8b0675 100644 --- a/types/chart.js/index.d.ts +++ b/types/chart.js/index.d.ts @@ -411,8 +411,8 @@ declare namespace Chart { interface ChartDataSets { cubicInterpolationMode?: 'default' | 'monotone'; backgroundColor?: ChartColor | ChartColor[]; - borderWidth?: number; - borderColor?: ChartColor; + borderWidth?: number | number[]; + borderColor?: ChartColor | ChartColor[]; borderCapStyle?: string; borderDash?: number[]; borderDashOffset?: number;