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.