Commit d260a3e
committed
fix: widen LabelList formatter parameter type for recharts 3
recharts 3's LabelFormatter no longer accepts a formatter typed to
take only number - the value parameter can be string | number, so a
(v: number) => ... function isn't assignable to it. Widen the
parameter and keep the existing runtime numeric check.1 parent cfbfb33 commit d260a3e
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