I'm not sure about embind - the declarations are in the C++ code, so the
C++ compiler would need to be involved in order to do this.

For the WebIDL binder approach, we could just convert WebIDL into a .d.ts
file. Probably there already exists such a tool, I assume, for using all
the current WebIDL specs of web APIs?

- Alon


On Tue, Jun 2, 2015 at 7:27 AM, matthias <[email protected]>
wrote:

> With embind I am able to create some class library written in C++ (which
> is very nice).
> Is there a possibility that emscripten/embind also creates a typescript
> definition file (*.d.ts) file?
> Or are there any plans to support that?
>
> If it would be possible to create such a file you could use the
> emscripten/embind library in a typescript project and typescript would give
> you errors if you use the wrong names, parameters, types and so on.
>
>  --
> 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.
>

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

Reply via email to