SoftwareOne Interview Question

Why use typescript, why not use just ES6?