callmepk@lemmy.world to Programmer Humor@lemmy.ml · 1 year agoMe, migrating my code from JavaScript to TypeScript:lemmy.worldimagemessage-square32fedilinkarrow-up1338arrow-down113
arrow-up1325arrow-down1imageMe, migrating my code from JavaScript to TypeScript:lemmy.worldcallmepk@lemmy.world to Programmer Humor@lemmy.ml · 1 year agomessage-square32fedilink
minus-squarefusio@lemmy.worldlinkfedilinkarrow-up22arrow-down1·1 year agothis is terrible advise - you should be using unknown. using any you’re basically disabling TS and will be under the false assumption that your code is ok while it’s most likely missing a lot of runtime checks
this is terrible advise - you should be using
unknown
. usingany
you’re basically disabling TS and will be under the false assumption that your code is ok while it’s most likely missing a lot of runtime checks