The two pieces I did:
1) Base.js is the result of an qooxdoo application where I trick the Qooxdoo
generate.py tool in thinking I use all of their desktop components. The qooxdoo
tool then generates the base file for me. Very simple, but effective.
2) I also created a (small) application that parses the API docs of Qooxdoo
(the JSON files in framework/api/script). With applying some logic I was able
to generate a TypeScript declaration file that is at least valid TypeScript (if
I recall correctly there were only a few cases where Qooxdoo violates some
basic OO principles that needed manual fixing). However there is still room
for improvement. For example I don’t use the default value info in the API docs
when generating the declaration file and for now also don’t use some type info
that is available through the Qooxdoo property mechanism. So in TypeScript
terms these terms are of “any” type while in fact they could be properly typed.
So updating to a new version is not that hard. Just run the generate.py tool
again and the parser, thats all.
— Peter
On 19 Aug 2014, at 09:54, dfrost999 <dfrost...@gmail.com> wrote:
> Nice work!
> Typescript integration is certainly interesting and the principles used
> could serve useful for integration with other compile-to-js languages.
> Furthermore, the usage of a "monolithic" qx-lib is very interesting for
> certain use cases.
> Could you elaborate how you generate ./script/base.js to keep it up to date
> with qooxdoo development?
>
> Cheers,
>
> Deacon
>
>
>
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/TypeScript-and-Qooxdoo-tp7585949p7586076.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel