© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Krzysztof Szala
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.
any
Harshit Jain
Frontend @ Intuit | Ex MakeMyTrip, SAP | Javascript| Typescript | React | React Native | UI
Yes, that's also a common usecase 👍