kevinresol / hxgenjs

Extensible JS generator for Haxe
57 stars 16 forks source link

Type information generated for d.ts extern definitions #33

Open fullofcaffeine opened 5 years ago

fullofcaffeine commented 5 years ago

Aloha!

I've been experimenting a bit more with hxgenjs and been playing with a hybrid TS<>HX approach for rapid app development. You can read a bit more about it here, the WIP source is here.

When trying the -D tsextern feature, I noticed that all type information is lost and Any is used instead. I have a few questions about that:

1) I assume that's because this version is still rough and data mappings between both haven't been implemented? 2) Are there any plans to implement it? 3) Any tricky scenarios where it'd be hard to map types from HX>TS?

cc @jgranick

back2dos commented 5 years ago

Try https://github.com/nadako/hxtsdgen ;)

fullofcaffeine commented 5 years ago

Good idea, I'll try integrating it with hxgenjs.

On Sun, Apr 28, 2019 at 11:42 PM Juraj Kirchheim notifications@github.com wrote:

Try https://github.com/nadako/hxtsdgen ;)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kevinresol/hxgenjs/issues/33#issuecomment-487450122, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAT2YGGHM5AJUGY7IFTXFDPSZ4CDANCNFSM4HI426JQ .

jgranick commented 5 years ago

That would be awesome -- it uses "Any" for now just to make sure it will compile, but more specific types (and in a perfect world, doc comments too!) would really be ideal :smile: