This is essential since it is practically impossible to write large system in javascript, so this should be done before javascript. Also modern system almost always have some part where javascript is used and then the only sane way to handle that is to use TypeScript.