Right now I'm not sure if I would go for Embind or webidl. But nevertheless I did some first tests with webidl. I did not find a lot of tools to create a typescript definition file (*.d.ts) from a webidl file. I used https://github.com/hfmanson/idl2typings (convert2 branch).
But out of the box it is not working: - in the webidl file there is no Module definition, therefore idl2typings can't create a typescript definition file with a Module declared (but you need it because the js file created by webidl_binder.py makes use of a Module) - the declared Module in the d.ts file would also need some more stuff (created by webidl_binder.py), for example the Module.destroy function - in addition the Module in the d.ts should also contain the core emscripten definitions (as for example defined in https://github.com/borisyankov/DefinitelyTyped/blob/master/emscripten/emscripten.d.ts), so the Module need to be a mix of Emscripten core and the webidl generated definitions) - the idl2typings does create interfaces which do not have constructors (instead it have methods with the same name as the class), but you need constructors otherwise you could not create the class with new) -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
