Skip to content
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

Set return type to JsonValue #49

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

voxpelli
Copy link

@voxpelli voxpelli commented Mar 9, 2024

As there is nothing that ensures that the JSON is a JSON object and (sadly) JSON allows any of its data types to be used at the top level, even null

As there is nothing that ensures that the JSON is a JSON object and (sadly) JSON allows any of its data types to be used at the top level, even `null`
test.js Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Owner

While I agree with the change, this will have to wait until the next major version.

@voxpelli
Copy link
Author

While I agree with the change, this will have to wait until the next major version.

Absolutely 👍

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.

None yet

2 participants