Skip to content

Create-Interface command in uncurried mode does not preserve @react.component #772

Closed
@fhammerschmidt

Description

@fhammerschmidt

Consider the following example:

@react.component
let make = (~name="") => <div />

In ReScript 11.0.0-alpha.6 with "uncurried": false when using the create-interface command, this is the resulting .resi:

@react.component
let make: (~name: string=?) => Jsx.element

but when I set "uncurried": true, this is the result:

type props<'name> = {name?: 'name}
let make: (. props<string>) => Jsx.element

I expected it to be the same as before.

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