TS by itself is not fully sound which could complicate such a compiler.
Example: https://www.typescriptlang.org/play?#code/MYewdgzgLgBAtgTwLI...
In the example above, the problem is that typescript allows casting function types to omit optional arguments, and also allows using a function with n arguments as a value where a function with >n arguments is expected