After encountering a detrimental bug resulting from assignment in an If statement, I have come to view if-assignment as an undesirable pattern that I would like to eliminate completely in order to receive compiler warnings instead of dealing with actual bugs.
What is the best way to disable if-assignment in Typescript?