I have some code that used to compiles fine in typescript 2.2, but fails in 2.3.1:
class Component<T extends object> extends React.Component<T, {}> {
render() { return <div { ...this.props }></div>; }
}
I now get:
ERROR in ./file.tsx
(34,17): error TS2698: Spread types may only be created from object types.
I suspect that this is fixed by this PR (unmerged at time of writing), but in the meantime, is there a way to workaround around this issue?