-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JSX/TSXRelates to the JSX parser and emitterRelates to the JSX parser and emitterFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
import * as React from "react";
interface Props {
}
export class Test extends React.Component<Props, {}> {
render() {
return <div {...this.props} />
}
}
Was working fine until: [email protected]
In [email protected]
throws:
error TS2698: Spread types may only be created from object types.
Not sure if related: #13557
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JSX/TSXRelates to the JSX parser and emitterRelates to the JSX parser and emitterFixedA PR has been merged for this issueA PR has been merged for this issue