4 ms·
this seems to be an issue with bad typings - ideally `JSON.parse()` would return `unknown` and then it wouldn't lie to you, but that would probably break a lot
by presentation 6y ago
this seems to be an issue with bad typings - ideally `JSON.parse()` would return `unknown` and then it wouldn't lie to you, but that would probably break a lot of people's code.
EDIT: https://github.com/microsoft/TypeScript/issues/26188 https://github.com/microsoft/TypeScript/issues/26188