also looking at this
fix(ui): stop passing a type argument to a chart helper that has none
#185
1 file
+4
-1
| @@ -111,8 +111,11 @@ export function renderDeploymentSparkline(records: DeploymentPoint[]): string { | ||
| 111 | 111 | record, |
| 112 | 112 | })) |
| 113 | 113 | |
| 114 | // `line` is not generic: @ts-charts/shape declares it | |
| 115 | // `createLine(x?: any, y?: any): any`, so the accessors below carry the | |
| 116 | // typing instead. It was generic before 0.2.x. | |
| 114 | 117 | const path = |
| 115 | line<any>() | |
| 118 | line() | |
| 116 | 119 | .x((d: any) => d.x) |
| 117 | 120 | .y((d: any) => d.y) |
| 118 | 121 | .curve(curveMonotoneX)(buckets) ?? '' |