Skip to content

[<ReactComponent>] in typescript will always transpile args to any #645

Open
@Freymaurer

Description

@Freymaurer

Using [<ReactComponent>], will currently create a Fable.Ident with Fable.Any

let makeIdent name: Fable.Ident =
    { Name = name
      Type = Fable.Any
      IsCompilerGenerated = true
      IsThisArgument = false
      IsMutable = false
      Range = None }

To allow for nice type creation we need to pass arg names and types to it.

This would allow for nicer creation of ReactComponents in F# and publishing them to npm.

Will open a PR for this soon! 🙂

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