mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Allow string & Date for ChartPoint.x
chartJS supports these datatypes for charts with time-type X-axis
This commit is contained in:
parent
08c30a2c3d
commit
429c95fd8b
4
chart.js/index.d.ts
vendored
4
chart.js/index.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user