https://github.com/Simn/ts2hx
Or
https://github.com/aduros/dts2haxe
I tested both .they make a pretty good job.
Ts2hx is pure haxe and require less dependency than dts2haxe.
Your choice
What works
- Classes.
- Interfaces (mapped to Haxe typedefs).
- Enums.
- Global variables and functions (placed as statics in a generated "Globals" class).
- Array types.
- Anonymous types.
- Varargs methods.
- Nested modules.
- Escaping Haxe keywords.
What doesn't work yet
- Generics.
- Method overloading.
- Certain weird JS patterns that don't map well to Haxe.
- Splitting generated Haxe into multiple .hx files.
- Importing external type dependencies. Converting HTML dependencies to js.html.*.
- Allowing quoted strings for identifiers.
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/groups/opt_out.
Called from ? line 1
Called from Main.hx line 60
Called from Main.hx line 120
Called from Main.hx line 110
Called from Main.hx line 70
Uncaught exception - three:lines 1-2: NoMatch TEllipsis
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Haxe" group.