Update index.d.ts

ChartColor should be of type String[] too
This commit is contained in:
Benjamin Svobodny
2017-06-14 14:14:53 -04:00
committed by GitHub
parent 232926fd1c
commit 4dfed498a1
+5 -1
View File
@@ -357,7 +357,7 @@ declare namespace Chart {
max?: number;
}
type ChartColor = string | CanvasGradient | CanvasPattern;
type ChartColor = string | CanvasGradient | CanvasPattern | string[];
export interface ChartDataSets {
backgroundColor?: ChartColor;
@@ -383,6 +383,10 @@ declare namespace Chart {
pointStyle?: string | string[] | HTMLImageElement | HTMLImageElement[];
xAxisID?: string;
yAxisID?: string;
type?: string;
hidden?: boolean;
hideInLegendAndTooltip?: boolean;
stack?: string;
}
export interface ChartScales {