Re:TypeScript 3.7
by cloverich on Tuesday November 05, 2019 @08:47PM
(#21458952)
Its unnecessary until the clause above it changes and the assumption no longer holds. That's how I fight my urge to go with the cast.
[ Parent
| on HN ]
That’s totally fair. Admittedly in my situation I have high degree of control over the input so my constraints are probably a little looser.
At any rate, I’d appreciate the same thing you would in these cases.