Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lint
Co-authored-by: Voltrex <[email protected]>
  • Loading branch information
bmeck and VoltrexKeyva authored Apr 11, 2021
commit d63d5f3be54d89869fd4b9701e16662283fffd2d
9 changes: 6 additions & 3 deletions lib/querystring.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ function addKeyVal(obj, key, value, keyEncoded, valEncoded, decode) {
* @param {string} qs
* @param {string} sep
* @param {string} eq
* @param {{ maxKeys?: 1000; decodeURIComponent?(v: string): string; }} [options]
* @param {{
* maxKeys?: number;
* decodeURIComponent?(v: string): string;
* }} [options]
* @returns {Record<string, string | string[]>}
*/
function parse(qs, sep, eq, options) {
Expand Down Expand Up @@ -469,8 +472,8 @@ function parse(qs, sep, eq, options) {
* v8 does not optimize functions with try-catch blocks, so we isolate them here
* to minimize the damage (Note: no longer true as of V8 5.4 -- but still will
* not be inlined).
* @param {string} s
* @param {(v: string) => string} decoder
* @param {string} s
* @param {(v: string) => string} decoder
* @returns {string}
*/
function decodeStr(s, decoder) {
Expand Down