DEV Community

Discussion on: What's new in TypeScript v4.4?

Collapse
 
dtiziani profile image
Tizi

if so, then it's not worth using useUnknownInCatchVariables. Using 'as' this way, you're not guarding the type, only forcing it

Collapse
 
ankittanna profile image
Ankit Tanna

yup I hate the as keyword typecasting.