Commit 812384e
fix(desktop): make compact tool label map type honest
The labels Record was annotated Record<CompactToolKind, ...> but only
spreads generic + developerToolLabels(), which excludes the buzz kind.
buzz is handled by an early return in compactToolLabel, so it never
indexes this map. Narrow the annotation to Exclude<CompactToolKind,
"buzz"> so tsc accepts it, and drop the redundant labelsMap re-cast.
No runtime behavior change.
Co-authored-by: Taylor Ho <taylorkmho@gmail.com>
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>1 parent a88c201 commit 812384e
1 file changed
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 145 | + | |
151 | 146 | | |
152 | 147 | | |
153 | 148 | | |
| |||
0 commit comments