HaxeFoundation/haxe

[js] @:expose enum to js

Open

#4,630 opened on Nov 7, 2015

 (15 comments) (2 reactions) (0 assignees)Haxe (704 forks)auto 404
Hacktoberfestenhancementhelp wantedplatform-javascript

Repository metrics

Stars
 (6,901 stars)
PR merge metrics
 (PR metrics pending)

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 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