SoftwareOne interview question

Why use typescript, why not use just ES6?