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
Instead of just using number type could generate a TypeScript-side const enum like hxtsdgen does
number
The text was updated successfully, but these errors were encountered:
Do you have an example of what you'd consider a const enum in Haxe? https://haxe.org/manual/types-abstract-enum.html?
Sorry, something went wrong.
For example this:
enum abstract MessageDirection(Int) { var MessageReceived; var MessageSent; }
with hxtsdgen gives me this:
export namespace snikket { export const enum MessageDirection { MessageReceived = 0, MessageSent = 1, } }
so that I can reference the enum items by name in typescript instead of needing to use the raw numbers.
benmerckx
No branches or pull requests
Instead of just using
number
type could generate a TypeScript-side const enum like hxtsdgen doesThe text was updated successfully, but these errors were encountered: