Skip to content

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

Closed

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

Activity

  1. added
    jsx
    on Apr 28, 2021
  2. cristianoc commented on Apr 28, 2021

    @cristianoc
    Collaborator

    Labeling all these with jsx meaning: not going to address them separately from changes to the ppx for JSX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    jsx

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions