@callmepk@lemmy.world to Programmer Humor@lemmy.ml • 2 years agoMe, migrating my code from JavaScript to TypeScript:lemmy.worldimagemessage-square32fedilinkarrow-up1339arrow-down114
arrow-up1325arrow-down1imageMe, migrating my code from JavaScript to TypeScript:lemmy.world@callmepk@lemmy.world to Programmer Humor@lemmy.ml • 2 years agomessage-square32fedilink
minus-square@jana@leminal.spacelinkfedilinkEnglish4•2 years agoThere are some cases where any must be used instead of unknown but they usually involve generic constraints and seem more like a bug than intended behavior
minus-square@9point6@lemmy.worldlinkfedilink2•2 years agoAh you’re right there, and I also agree, that feels more like a bug than by design
There are some cases where
any
must be used instead ofunknown
but they usually involve generic constraints and seem more like a bug than intended behaviorAh you’re right there, and I also agree, that feels more like a bug than by design