Code generation for Typescript