HaxeFoundation / HaxeFoundation/haxe

[js] @:expose enum to js

Open
#4,630 15 comments 2 reactions 0 assignees View on GitHub
enhancement Hacktoberfest help wanted platform-javascript
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

I can't find a way to expose an enum to js, and I see that recently someone else posted on gitter with the same problem.

I'm currently using a hackish solution to achieve it (see [this discussion](https://groups.google.com/forum/#!searchin/haxelang/expose/haxelang/ZAZtlc2VqHs/mx6hxS77CgAJ) on the mailing list), but I'm wondering if there's a standard way to do it or if it has been intentionally left out.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.