For the qx-typed I did two things: 1) Created a dummy project with all the desktop widgets and let the normal Qooxdoo tooling generate the resulting JS file. The nice things is that the normal tooling will now also include the dependencies, so not have to worry about that.
2) Based on the framework documentation JSON files (framework/api/script), generate the declaration file. So this where the parser comes into place and map the qooxdoo world to TypeScript. After that I think I had to made a few manual changes and that is it. So quite easy to update if a new version of Qooxdoo comes out. Things prevent it from being 100% perfect: 1) At that time TypeScript didn’t support protected, so mapped that to public members 2) Also no support at that time for Union Types in TypeScript, so used <any> instead 3) No support for mixing, used interfaces instead 4) Mistakes in the Qooxdoo documentation or some OO violations. — Peter > On 30 Oct 2014, at 08:43, John Spackman <john-li...@zenesis.com> wrote: > > Hi Peter > > How does that work with the generator? Do you compile all Qooxdoo JS into > one file for the Typescript compiler to read and optimise (and for the IDE to > do the code completion?) > > John > >> On 29 Oct 2014, at 20:23, JBaron <pe...@jbaron.com> wrote: >> >> To be even more correct, much of the real heavy lifting is done by the >> TypeScript language services in the background (analysing the source code >> etc). >> >> That being said, Qooxdoo really has been a pleasure to work with in >> combination with TypeScript. Really feels like developing a traditional >> desktop app in Java or C#. Qooxdoo can be a complex/large API, but with >> TypeScript and the availability of things like code-completion it became >> much easier to be productive. So really impressed by Qooxdoo and how easy it >> is to create a great UI’s >> >> Already long time on my agenda to share my experience, so will write up some >> stuff when I have some spare time. >> >> — Peter >> > > > > ------------------------------------------------------------------------------ > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel