This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
Commit 7454a1f
committed
fix(plugin-charts): type the compareTo test's parameter at the producer's declaration
Second union-only defect with objectui#8895, measured on the merge of the two
heads and NOT previously reported: `renderChart(compareTo: unknown, …)` stops
compiling once #8895 declares `ObjectChartSchema.compareTo` as
`DashboardWidget['compareTo']`, because on this branch the key still rides
`BaseSchema`'s index signature.
It was masked rather than absent: `type-check` is
`tsc --noEmit && tsc -p tsconfig.test.json`, so the drill-title error in
`ObjectChart.tsx` short-circuited the test project and hid every error it would
have reported. Running the test project alone on the pre-rework union shows both.
Typed at `DashboardWidget['compareTo']` — the symbol #8895 binds to and the
declaration the value actually comes from (`DashboardRenderer` forwards
`widget.compareTo` verbatim). All four call sites already pass that shape.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01611D6ZaRaMmwTNQmSbk8MH1 parent 0d3d375 commit 7454a1f
1 file changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
97 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
98 | 120 | | |
99 | 121 | | |
100 | 122 | | |
| |||
0 commit comments