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).
Formerly a banker and tech startup founder. Now on my 3rd career as a full stack software engineer (with a front end focus). Posts on tech and things learnt on my programming journey. 👩🏻💻
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).
Thanks for taking the time to highlight this Maroš!