Typescript code generator (v2)