We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
stringify, JSON.stringify undefined
stringify
Playground link with relevant code
// hover over 'x', it's typed as string. const x = JSON.stringify(undefined); console.log(typeof x) // outputs "undefined"
Return type of JSON.stringify is string but it can return undefined
JSON.stringify
string
undefined
Return type should reflect actual set of values that could be returned: string | undefined
string | undefined
The text was updated successfully, but these errors were encountered:
Duplicate of #18879
Ton of duplicates can be found with search for JSON.stringify undefined
JSON.stringify undefined
Sorry, something went wrong.
Sure enough! I adjusted my query to include quotes and found the one you linked right away. Closing.
No branches or pull requests
Bug Report
π Search Terms
stringify, JSON.stringify undefined
π Version & Regression Information
stringify
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Return type of
JSON.stringify
isstring
but it can returnundefined
π Expected behavior
Return type should reflect actual set of values that could be returned:
string | undefined
The text was updated successfully, but these errors were encountered: