TsCodeGenerator
This library separates out the code generation side of ts-type-info and doesn't have a dependency on the typescript compiler. It will be the future base of ts-type-info.
Still needs a major refactoring. Not intended for use yet.
Example
; // create whatever you like at the start; // add to it later;myClass.isAbstract = true;myClass.addDecorator; myClass.addProperty;myClass.addProperty; // write it outconsole.logfile.write;
Outputs:
@MyDecoratorabstract class MyClass { myProperty1: string; myProperty2 = 4; // myMethod is here myMethod(myParam: string) { if (myParam != null && myParam.length > 40) { alert(myParam); } return myParam; }}