Introduction to TypeScript's Compiler API which can be used to generate functional TypeScript code in an automatic manner. Involves TypeScript's abstract syntax tree (AST) and how to use it to construct consistent and maintainable source code. Presented at Berlin.JS meetup on January 16th, 2020.