We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in case that:
// Lib.resi @gentype @tag("action") type action = | @as("insert") Insert({data: string}) | @as("retain") Retain({data: string}) | @as("remove") Remove({data: string})
the generated .ts by gentype are:
// Lib.gen.ts export type action = { TAG: "insert"; readonly data: string } | { TAG: "retain"; readonly data: string } | { TAG: "remove"; readonly data: string };
the discriminator property name is still TAG not action
TAG
action
The text was updated successfully, but these errors were encountered:
Good test for semantic search "gentype emit js variant tag"
Sorry, something went wrong.
Lib.resi Lib.res Lib.bs.js Lib.gen.ts
gentypeconfig in bsconfig.json
"gentypeconfig": { "language": "typescript", "generatedFileExtension": ".gen.ts", "module": "es6", }
Sorry that I still cannot figure out where I did wrong.
Gentype: support @tag
9869145
Fixes #6436
Here: #6437
da3d740
No branches or pull requests
in case that:
the generated .ts by gentype are:
the discriminator property name is still
TAG
notaction
The text was updated successfully, but these errors were encountered: