Open cainlevy opened 4 years ago
My attempted workaround:
type CombinedXYFrameProps = React.ComponentProps<typeof ResponsiveXYFrame> & React.ComponentProps<typeof XYFrame>;
class TypedResponsiveXYFrame extends React.Component<CombinedXYFrameProps> {
render() {
return <ResponsiveXYFrame {...this.props} />;
}
}
Good catch.
The types available for various
ResponsiveFooFrame
components do not extend their base types. For example, TypeScript says there is nopoints
prop available on<ResponsiveXYFrame />
.