FormidableLabs / FormidableLabs/victory
Typescript 5.2.2 issue in VictoryLineBase
Open
Issue: Accepted
Type: Bug :bug:
Type: TypeScript
- Dominant language
- TypeScript
- Stars
- 11.2k
- Forks
- 536
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Code in question:
```
({
x: year,
y: cost,
}))}
style={{
data: {
stroke: CHART_COLORS[0],
strokeWidth: ({ active }) => (active ? 6 : 4),
strokeDasharray: "12",
},
labels: { fill: CHART_COLORS[0] },
}}
/>
```
**Victory version**
Latest
**Code Sandbox link**
**To Reproduce**
Steps to reproduce the behavior:
1. Use Victory Line Chart with TS 5.2.2
**Expected behavior**
No error like in previous version of TS
**Screenshots**
Above
Contributor guide
Assessment
This issue has not been assessed yet.