3 ms·
When does the standard library lie in this case?
by __ryan__ 3y ago
When does the standard library lie in this case?
- consilient 3y agoThings 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.