Feb 17, 2022
Great article. Using type assertions is often as bad as just throwing up an "any".
I tend to create guard clauses a lot more now. The benefit of guard clauses is that they compile down to javascript and you get type safety after using them.