Skip to content

Create interface file does not work with React.memo #382

Closed
@cknitt

Description

@cknitt

@cristianoc Thanks for your great work on getting the "Create interface file" feature to work for React components, too! 👍

I just tested it with the VSIX from the lastest master build and found that components memoized with React.memo do not work correctly yet.

For example,

@react.component
let make = (~someValue as _: bool) => React.null

let make = React.memo(make)

results in

let make: React.component<{"someValue": bool}>

instead of

@react.component
let make: (~someValue: bool) => React.element

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions