mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
Allow null/undefined embedded within numeric values (#29723)
Nulls are used create deliberate gaps in charts.
This commit is contained in:
committed by
Sheetal Nandi
parent
f89eb54b58
commit
e35089cc40
@@ -19,7 +19,7 @@ const chart: Chart = new Chart(new CanvasRenderingContext2D(), {
|
||||
backgroundColor: "#000000",
|
||||
borderWidth: 1,
|
||||
label: "test",
|
||||
data: [1]
|
||||
data: [1, null, 3]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Vendored
+1
-1
@@ -548,7 +548,7 @@ declare namespace Chart {
|
||||
borderDashOffset?: number;
|
||||
borderJoinStyle?: 'bevel' | 'round' | 'miter';
|
||||
borderSkipped?: PositionType;
|
||||
data?: number[] | ChartPoint[];
|
||||
data?: Array<number | null | undefined> | ChartPoint[];
|
||||
fill?: boolean | number | string;
|
||||
hoverBackgroundColor?: string | string[];
|
||||
hoverBorderColor?: string | string[];
|
||||
|
||||
Reference in New Issue
Block a user