Closed dyakonovr closed 6 months ago
If typescript told you that, typescript is wrong. Make sure you’ve used the latest version of both qs and @types/qs.
If it still isn’t working, then the DT package needs updating, but that isn’t relevant to this JS repo.
Hi all. Please update the following fragment from the documentation:
"You may use the arrayFormat option to specify the format of the output array:
Note: when using arrayFormat set to 'comma', you can also pass the commaRoundTrip option set to true or false, to append [] on single-item arrays, so that they can round trip through a parse."
It is misleading. I was trying to convert an object of the form:
to a url string. All my attempts to work with this library in a project before had failed, so I decided to work with the library in codepen. I tried converting the object to a url and got the result I wanted, but to do so I used a configuration object that had the fields arrayFormat: "comma" and (as the documentation says to help it define the array) commaRoundTip: true. Everything worked fine on codepen, but when I moved the code into my project, TypeScript told me that the commaRoundTip: true field didn't exist in the configuration object.
Tnx