This library automatically creates TypeScript definitions for MRAA (mraa.d.ts
), hence providing static typing and safer usage of the MRAA lib, while the execution remains purely in JavaScript. It has been designed as a solution to overcome the lack of support for TypeSript in SWIG (which should come at some point).
Use maven to build, the generated jar include the necessary dependencies
mvn package
java -cp target/hpp2ts-0.0.1.jar eu.heads.project.ts.CPPHeaderScanner /home/barais/git/mraa/api/mraa/ mraa.d.ts #mraa_api_folder destfile.d.ts
Built using https://github.com/ricardojlrufino/cplus-libparser
Brought to you by the HEADS project under the GNU LESSER GENERAL PUBLIC LICENSE v2.1