HaxeFoundation / HaxeFoundation/haxe
Opt in for more TS/JS-friendly enum representation.
Open
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
It would be nice if there were a way to make the compiler emit code that puts the constructor name into the object (under e.g. a `$type` property), because that way we could use enums in APIs we expose to other frontend teams (which use JS/TS). Maybe via a compiler flag, that would also control the property name.
Contributor guide
Assessment
This issue has not been assessed yet.