nbind icon indicating copy to clipboard operation
nbind copied to clipboard

Support for converting enum types

Open ed-alertedh opened this issue 7 years ago • 2 comments

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.

ed-alertedh avatar Jul 11 '18 05:07 ed-alertedh

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

dcvh avatar Sep 20 '18 07:09 dcvh

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.

ed-alertedh avatar Sep 20 '18 07:09 ed-alertedh