Legends (LegendPropShape) -- No Exported Member (error TS2694)
See original GitHub issueDescribe/explain the bug The version used to produce this bug is 0.70.1. The NPM package csstype does not contain a member called AnimationIterationCountProperty. This causes issues when running the tsc. This is affecting the LegendPropShape type (props.d.ts)
data: PropTypes.Requireable<(PropTypes.InferProps<{ id: PropTypes.Validator<import("csstype").AnimationIterationCountProperty>; label: PropTypes.Validator<import("csstype").AnimationIterationCountProperty>; color: PropTypes.Requireable<string>; fill: PropTypes.Requireable<string>; }> | null)[]>;
To Reproduce Use the LegendPropShape type and attempt to run tsc --emitDeclarationOnly. This will result in a tsc error. https://codesandbox.io/s/missing-cssimport-r1cxp?file=/package.json
Steps to reproduce the behavior:
- Use legends in a plot, such as a bar plot
- Execute tsc --emitDeclarationOnly
Expected behavior Running tsc --emitDeclarationOnly does not cause this error.
Desktop (please complete the following information):
- OS: macOS
- Browser N/A (this is a type bug, not runtime bug)
- Version N/A (this is a type bug, not runtime bug)
Additional context N/A
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top GitHub Comments
It appears that as long as
"skipLibCheck": true
is set in the tsconfig, the issue doesn’t surface.I see that in the generated output. I’ll see if there is something we can do to change it.