Just a correction; we have a prototype generator that allows TypeScript inputs but currently we are not using TypeScript for generating Elemental. We instead use Closure externs files that are nicely typed: https://github.com/google/closure-compiler/tree/master/externs
Generator currently using common ancestor for union types. On Fri, May 20, 2016 at 7:27 AM, Paul Stockley <[email protected]> wrote: > It will be interesting to see how using typescript definitions work out. > From my experience of using them, many leave a lot to be desired from a > strict typing point of view. A lot of people get lazy and just use 'any' > everywhere. How will you handle union types? e.g. string | int | > someobject | array<some object> > > I can see them being a good starting point but probably they will require > manual changes to make user friendly Java API's. > > > On Thursday, November 19, 2015 at 4:39:20 AM UTC-5, Rene Hangstrup Møller > wrote: >> >> Hi >> >> A year ago I tried to write a tool for generating JsInterop classes from >> WebIDL, I abandoned the project because there was no good solution for >> method overloading and constructors back then. I know others have attempted >> the same. >> >> It looks like the new JsInterop spec solves those problems, so i was >> considering reviving that project, but I don't want to waste the time if >> Elemental 2 is going to be released within the next couple of months. >> >> I guess it should be possible to release it as a separate project that >> can be used from GWT 2.8 and the in the far future J2CL. >> >> Any chance that Elemental 2 will be available shortly or should I build >> my own? >> >> Best regards >> Rene >> >> -- > You received this message because you are subscribed to the Google Groups > "GWT Contributors" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-web-toolkit-contributors/c742158a-c87c-4b00-868f-b93a7672a214%40googlegroups.com > <https://groups.google.com/d/msgid/google-web-toolkit-contributors/c742158a-c87c-4b00-868f-b93a7672a214%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAN%3DyUA1H4sR9RLZQEpwPLwusfPePT%2BGX3TNcApnC-hRFi6%2BGEw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
