Honestly, it's nothing alike. Refactoring in Elm is different, as the compiler will tell you if you did the correct thing when refactoring. The typescript compiler can only do a fraction of that, even if you type your stuff correctly.
Needing to type stuff in elm is mostly optional too. The compiler will still check it for you anyway.