Skip to content

Create interface file with JSX 4 componentย #617

Closed
@cknitt

Description

@cknitt

Given a JSX 4 component defined in Test.res:

@react.component
let make = (~a: string) => React.string(a)

I get the following Test.resi when using the "ReScript: Create interface file..." action:

type props<'a> = {a: 'a}
let make: props<string> => React.element

I would have expected to get

@react.component
let make: (~a: string) => React.element

(same as for JSX 3).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions