3 ms·
Things are `any` when they should be `unknown` or generic, mostly. Off the top of my head: - `JSON.parse` and `.json()` on response bodies both return `any`.
by consilient 3y ago
Things are `any` when they should be `unknown` or generic, mostly. Off the top of my head:
- `JSON.parse` and `.json()` on response bodies both return `any`.
- `JSON.stringify`'s `replacer` argument is of type `(key: any, string: any) => any`.
- `PromiseRejectedResult["reason"]` is `any`.
There are certainly many others.