Frontend @ Intuit | Ex MakeMyTrip, SAP | Javascript| Typescript | React | React Native | UI
I am a Frontend Engineer, based out of India, with 7+ years of building scalable web applications. I am passionate about clean code, design patterns, developer productivity and User Experience
Markdown supported · ⌘↵ to post
Type Assertion can be helpful in unit tests, when you need to create some typed object, but you don't need all its properties. Otherwise, I try to avoid it because it is almost like typing things with any.
Harshit Jain
Hanamant k
Great post..!! In last paragraph of post you mentioned ' Type assertion gives more safety '. is that typo mistake...??