As i noted in an other comment, the code is a mess an needs a refactoring after the Intellisens generated files are merged. i volunteer for that and write the unit tests for generating javascript and typescript files.