Loading video player...
Still using any in TypeScript? If so - are using any you are basically turning off all the type checks in typescript. If you don’t know what kind of data you get, if that’s response from the api, for example - use unknown instead. It will force you to add a type guard and make sure you pass valid data. So next time you’re tempted to use any… Use unknown instead — and make TypeScript work for you.