There are several things here that need correcting:
- Last I checked, to get TypeScript benefits, you have to rename all your *.js files to *.ts, unless you use VSCode, which doesn’t work for me because the keyboard shortcuts are all screwed up (KB shortcut layouts don’t work as advertised on my Dvorak KB layout)
- You claim that “you simply cannot get the same tooling” without static types, but I’ve never seen a large TypeScript app that was 100% correctly typed. Adding
anyannotations everywhere is effectively the same as having an untyped program, and using any type annotations at all is optional — meaning, unlike Haskell, C++ or Java, you can compile a TypeScript program that is not well-typed.
- You certainly can get tree shaking without TypeScript. See Rollup.