Incrementally migrate to Typescript