Allow string & Date for ChartPoint.x

chartJS supports these datatypes for charts with time-type X-axis
This commit is contained in:
Uli Köhler 2017-01-30 23:50:36 +01:00 committed by GitHub
parent 08c30a2c3d
commit 429c95fd8b

4
chart.js/index.d.ts vendored
View File

@ -71,7 +71,7 @@ declare namespace Chart {
}
export interface ChartPoint {
x?: number;
x?: number | string | Date;
y?: number;
}
@ -430,4 +430,4 @@ declare namespace Chart {
}
export = Chart;
export as namespace Chart;
export as namespace Chart;