Skip to content

TSX spread stopped working #14112

Closed
Closed
@normalser

Description

@normalser
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

No one assigned

    Labels

    BugA bug in TypeScriptDomain: JSX/TSXRelates to the JSX parser and emitterFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions