Commit 29ac2de
committed
fix: type LabelList formatter param as unknown to match recharts 3's LabelFormatter
Each narrower guess (number -> string|number -> string|number|undefined)
hit a new rejected member of recharts' actual RenderableText union one
at a time. Widen to unknown, which is assignable regardless of that
union's exact shape; the existing typeof-number runtime check already
narrows it safely.1 parent c239e6a commit 29ac2de
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments