callmepk@lemmy.world to Programmer Humor@lemmy.ml · 1 year agoMe, migrating my code from JavaScript to TypeScript:lemmy.worldimagemessage-square31fedilinkarrow-up1333arrow-down113
arrow-up1320arrow-down1imageMe, migrating my code from JavaScript to TypeScript:lemmy.worldcallmepk@lemmy.world to Programmer Humor@lemmy.ml · 1 year agomessage-square31fedilink
minus-squarejana@leminal.spacelinkfedilinkEnglisharrow-up4·1 year 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-square9point6@lemmy.worldlinkfedilinkarrow-up2·1 year 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