Optimize Typescript.