4 ms·
In my opinion, totally worth it. First, you can transition gradually, just typing one file at a time if you want. Second, the type-safety you get makes incremen
by Ozzie_osman 7y ago
In my opinion, totally worth it. First, you can transition gradually, just typing one file at a time if you want. Second, the type-safety you get makes incremental refactoring so much easier and makes you more thoughtful about "interfaces" (ie function parameters, etc). It also catches tiny bugs that would otherwise blow up in production.
Yes, sometimes you'll run into weird cases where you have to wrestle the type system, but honestly, in the worst-case you can just ts-ignore those (though you probably want to minimize that).