Skip to content

Wrong type annotation generated in the interface file #922

Open
@soundstep

Description

@soundstep

Original discussion:
https://forum.rescript-lang.org/t/missing-type-annotation-from-generated-interface-file/5065

Not sure if this is a bug or not but when I generated an interface file using the vscode extension, it converted this type:

type tokenType = | @as("bearer") Bearer

To this type:

type tokenType = Bearer

Produced this error:

Type declarations do not match:
  type tokenType = Bearer
is not included in
  type tokenType = Bearer
The internal representations for case Bearer are not equal.

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