Missing type annotation from generated interface file

Not sure 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.

This is a bug in the editor tooling, could you file an issue on that repo?

1 Like
3 Likes