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
The new types added in #279 are too restrictive as they eliminate the possibility of nulls being in the arrays.
Consider the following acceptable use of parse and stringify:
> const qs = require('query-string') undefined > qs.parse('?foo&foo=1&foo&foo=test&foo=&foo') [Object: null prototype] { foo: [ null, '1', null, 'test', '', null ] } > qs.stringify({ foo: [null, '1', null, 'test', '', null] }) 'foo&foo=1&foo&foo=test&foo=&foo'
While [null, '1', null, 'test', '', null] is a valid value, it does not meet the definition of Stringifiable[] which is (string | boolean | number)[]
[null, '1', null, 'test', '', null]
Stringifiable[]
(string | boolean | number)[]
The text was updated successfully, but these errors were encountered:
That looks like a mistake.
// @esetnik
Sorry, something went wrong.
null
undefined
Stringifiable
Sorry about that. Let me know if #281 solves this issue.
Thanks! That does the trick 👍
Successfully merging a pull request may close this issue.
The new types added in #279 are too restrictive as they eliminate the possibility of nulls being in the arrays.
Consider the following acceptable use of parse and stringify:
While
[null, '1', null, 'test', '', null]
is a valid value, it does not meet the definition ofStringifiable[]
which is(string | boolean | number)[]
The text was updated successfully, but these errors were encountered: