semiotic
semiotic copied to clipboard
responsive frame types do not extend base types
The types available for various ResponsiveFooFrame components do not extend their base types. For example, TypeScript says there is no points prop available on <ResponsiveXYFrame />.
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.