3 ms·
If you're using `any` just because the type is complex, then using it sparingly isn't a huge deal, so long as you are confident that the type is correct. The p
by shepherdjerred 3y ago
If you're using `any` just because the type is complex, then using it sparingly isn't a huge deal, so long as you are confident that the type is correct.
The problem is using `any` when you _don't_ actually know the type of something, e.g.
```
const data = JSON.parse(localStorage.get("my_data")) as any as UserSettings;
```
In the above case you're just hoping that what's in local storage matches your type, and it makes your type system less effective.