|
|
|
|
|
by ehsanu1
3660 days ago
|
|
Both those versions should work the same from the compiler's point of view. But from a programmer's point of view, specifically someone migrating a JS system to TS, it's useful to read "oldVarType" instead of "any", because it tells you that it was just a quick way to migrate rather than necessarily designed to be "any". |
|
For a single function it's not a bug deal, but if you are migrating 10k lines, I'd view it as a near necessity.