DEV Community

Discussion on: Some lesser known TypeScript notation

Collapse
 
haaxor1689 profile image
Maroš Beťko • Edited

Nice overview of these 2 features of TS, but you should emphasise that they are both manually turning off/overriding set up rules which is an easy way to shoot yourself in foot if you aren't absolute sure about what you are doing. If you decide to use bang operator or cast through unknown you are giving up type safety on that part of code which makes it more prone to bugs (for example during refactoring).

Collapse
 
bionicjulia profile image
Bionic Julia

Thanks for taking the time to highlight this Maroš!