Skip to content

JSON.parse is not supposed to return any #26994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

JSON.parse is not supposed to return any #26994

wants to merge 2 commits into from

Conversation

alepee
Copy link

@alepee alepee commented Sep 10, 2018

As discussed within DefinitelyTyped project with @theodorejb and as described by JSON specification JSON.parse do not return any but object | number | string | boolean | null.

Fixes #26993

As [discussed with @theodorejb](DefinitelyTyped/DefinitelyTyped#28529 (comment)) and as described by [JSON specification](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf) `JSON.parse` do not return `any` but `object |  number | string | boolean | null`.
@msftclas
Copy link

msftclas commented Sep 10, 2018

CLA assistant check
All CLA requirements met.

@j-oliveras
Copy link
Contributor

Files from lib folder are generated from src/lib folder. Some files from src/lib are generated from TSJS-lib-generator repository.

Read Contributing lib.d.ts fixes for more info.

@RyanCavanaugh
Copy link
Member

It is supposed to return any

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants