typescript is for maintainability inside midsize to enterprise scale companies with the management and hiring challenges associated with that scale (100 to 1000s of engineers), In other words Typescript theoretically solves the problem of how do you catch errors before production when all you have is an army of junior devs?