Typescript annotations to JsInterop java classes automatic generation tool ready

265 views
Skip to first unread message

Ltearno

unread,
Sep 28, 2017, 5:54:05 AM9/28/17
to GWT Users
Hi everyone,

I made up and published today a tool which uses Typescript type definitions (.d.ts) and generates the corresponding JsInterop classes for use inside a GWT application (or JaCL when available).


I use it to translate the full Angular 4 API (2000+ classes) into JsInterop and get a working code. It can also generate the standard web api from 'lib.es6.d.ts' and generate something that ressembles Elemental2 a lot!

I am interested to help if people want to use it or have some other use cases (wrapping D3.js or any other library available on 'definitely typed'). So don't hesitate to file an issue on github... Or to answer here!

Thanks
Arnaud

Vassilis Virvilis

unread,
Sep 28, 2017, 7:00:49 AM9/28/17
to google-we...@googlegroups.com
Wow! This is impressive!

I am not familiar with Angular and cannot comment in the quality of the generated API.

Any chance you could post jquery jsinteropified with your tool? jquery is the basis for a lot of libraries so if you get that correctly a lot libaries will be trivial to process.

I skimmed through the README and I like the configuration control. Can it be per class or is a global configuration per .d.ts file?

Thanks for that contribution.



--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--
Vassilis Virvilis

Slava Pankov

unread,
Sep 28, 2017, 4:11:52 PM9/28/17
to GWT Users
Great! That will be absolutely must have tool, thank you.

Joseph Webber

unread,
Sep 29, 2017, 5:09:17 AM9/29/17
to GWT Users
This is totally awesome! I have the tour of heros working with angular2 as per a project post by Lte Consulting a year ago. Is there the Angular4 tour of heros example working and published? I work a very large government department that is just starting to use Angular 4 now and i would like to demo doing this in Java.

Arnaud TOURNIER

unread,
Sep 29, 2017, 8:35:48 AM9/29/17
to GWT Users
Thanks Joseph,
Not right now, I still need to adjust a few things..
I will let you know when Tour of heroes and all other ANgular 2 samples will have been ported to Angular 4
Thanks
Arnaud

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/5YgpOfYi9H8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.

Arnaud TOURNIER

unread,
Sep 29, 2017, 12:40:16 PM9/29/17
to google-we...@googlegroups.com
Thanks for your message,
Very good idea about transpiling jquery!  I was hoping to ship that immediately but jquery shown me darker side of typing defintions with typescript, so there are a lot of bugs I didn't see at first on my tool (angular is written in an oop style) I need to fix now.
Let me get back to you in few days when I got all the details fixed (right now I get 25 java errors out of the jquery .d.ts transpilation which I need to fix by hand, not very handy for such a common case as the jquery lib ;))
I should soon document the code architecture to ease if people want to contribute.
See you
Arnaud

Le jeu. 28 sept. 2017 à 13:00, Vassilis Virvilis <vas...@gmail.com> a écrit :
Wow! This is impressive!

I am not familiar with Angular and cannot comment in the quality of the generated API.

Any chance you could post jquery jsinteropified with your tool? jquery is the basis for a lot of libraries so if you get that correctly a lot libaries will be trivial to process.

I skimmed through the README and I like the configuration control. Can it be per class or is a global configuration per .d.ts file?

Thanks for that contribution.



On Thu, Sep 28, 2017 at 12:54 PM, Ltearno <lte...@gmail.com> wrote:
Hi everyone,

I made up and published today a tool which uses Typescript type definitions (.d.ts) and generates the corresponding JsInterop classes for use inside a GWT application (or JaCL when available).


I use it to translate the full Angular 4 API (2000+ classes) into JsInterop and get a working code. It can also generate the standard web api from 'lib.es6.d.ts' and generate something that ressembles Elemental2 a lot!

I am interested to help if people want to use it or have some other use cases (wrapping D3.js or any other library available on 'definitely typed'). So don't hesitate to file an issue on github... Or to answer here!

Thanks
Arnaud

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.

To post to this group, send email to google-we...@googlegroups.com.



--
Vassilis Virvilis

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/5YgpOfYi9H8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.

Ali Jalal

unread,
Sep 30, 2017, 12:54:55 PM9/30/17
to google-we...@googlegroups.com
Really great tool for making GWT applications work with javascript/typescript tools with standard JsInterop API. Thank arnaud.

On Fri, Sep 29, 2017 at 8:09 PM, Arnaud TOURNIER <lte...@gmail.com> wrote:
Thanks for your message,
Very good idea about transpiling jquery!  I was hoping to ship that immediately but jquery shown me darker side of typing defintions with typescript, so there are a lot of bugs I didn't see at first on my tool (angular is written in an oop style) I need to fix now.
Let me get back to you in few days when I got all the details fixed (right now I get 25 java errors out of the jquery .d.ts transpilation which I need to fix by hand, not very handy for such a common case as the jquery lib ;))
I should soon document the code architecture to ease if people want to contribute.
See you
Arnaud

Le jeu. 28 sept. 2017 à 13:00, Vassilis Virvilis <vas...@gmail.com> a écrit :
Wow! This is impressive!

I am not familiar with Angular and cannot comment in the quality of the generated API.

Any chance you could post jquery jsinteropified with your tool? jquery is the basis for a lot of libraries so if you get that correctly a lot libaries will be trivial to process.

I skimmed through the README and I like the configuration control. Can it be per class or is a global configuration per .d.ts file?

Thanks for that contribution.



On Thu, Sep 28, 2017 at 12:54 PM, Ltearno <lte...@gmail.com> wrote:
Hi everyone,

I made up and published today a tool which uses Typescript type definitions (.d.ts) and generates the corresponding JsInterop classes for use inside a GWT application (or JaCL when available).


I use it to translate the full Angular 4 API (2000+ classes) into JsInterop and get a working code. It can also generate the standard web api from 'lib.es6.d.ts' and generate something that ressembles Elemental2 a lot!

I am interested to help if people want to use it or have some other use cases (wrapping D3.js or any other library available on 'definitely typed'). So don't hesitate to file an issue on github... Or to answer here!

Thanks
Arnaud

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.

To post to this group, send email to google-web-toolkit@googlegroups.com.



--
Vassilis Virvilis

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/5YgpOfYi9H8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.

David

unread,
May 20, 2021, 12:00:25 PMMay 20
to GWT Users
Can I use this tool to convert files in https://github.com/OpenVidu/openvidu/tree/master/openvidu-browser/src/OpenVidu to Java? 

I can not understand this sentence - " Then launch it with nodejs target/main.js CONFIG_FILE." or I don't know how to use this bool.

Thanks,

David

Reply all
Reply to author
Forward
0 new messages