Skip to content
New issue

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

Support for converting enum types #119

Open
ed-alertedh opened this issue Jul 11, 2018 · 2 comments
Open

Support for converting enum types #119

ed-alertedh opened this issue Jul 11, 2018 · 2 comments

Comments

@ed-alertedh
Copy link

ed-alertedh commented Jul 11, 2018

For users writing JS, having javascript definitions for the values of an enum would be quite useful.

For users of ndts/typescript - it seems that you currently cannot bind any methods with an enum type in their signature or you get the unbound type error described in #118 when you try to generate type definitions.

Happy to contribute if I could have some guidance around the best approach to take here.

edit: it seems this is a problem for anybody using nbind as I get the same unbound type errors when I try to load the compiled asm.js module from javascript.

@dcvh
Copy link

dcvh commented Sep 20, 2018

@ed-alertedh Have you found any solution for this problem?

@ed-alertedh
Copy link
Author

I gave up on binding the original API I was working with and instead made some simple classes encapsulating the functionality I needed and used nbind to expose those to JS instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants