Skip to content

Hover over React component declaration in .resi file shows incorrect type information #177

Closed
@cknitt

Description

@cknitt

(Beta2)

In the .resi, the result type is wrong (should be React.element).
Also ~key and unit are shown for .resi, but not for .res.

A.res:

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

Bildschirmfoto 2021-04-27 um 18 46 13

A.resi:

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

Bildschirmfoto 2021-04-27 um 18 43 18

Metadata

Metadata

Assignees

No one assigned

    Labels

    jsxIssue with ppx for JSX

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions