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
linter
Co-authored-by: Voltrex <62040526+VoltrexMaster@users.noreply.github.com>
  • Loading branch information
bmeck and VoltrexKeyva authored Apr 11, 2021
commit 514ed2ad567a10316d72c83adfa36ba3a5a168c3
18 changes: 9 additions & 9 deletions lib/querystring.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ function stringifyPrimitive(v) {

/**
* @param {string | number | BigInt | boolean} v
Comment thread
bmeck marked this conversation as resolved.
Outdated
* @param {(v: string) => string} encode
* @returns
* @param {(v: string) => string} encode
* @returns
*/
function encodeStringified(v, encode) {
if (typeof v === 'string')
Expand All @@ -209,20 +209,20 @@ function encodeStringified(v, encode) {
}

/**
* @param {string | number | boolean | null} v
* @param {(v: string) => string} encode
* @param {string | number | boolean | null} v
* @param {(v: string) => string} encode
* @returns {string}
*/
function encodeStringifiedCustom(v, encode) {
return encode(stringifyPrimitive(v));
}

/**
*
* @param {Record<string, string | number | boolean | ReadonlyArray<string> | ReadonlyArray<number> | ReadonlyArray<boolean> | null>} obj
* @param {Record<string, string | number | boolean
* | ReadonlyArray<string | number | boolean> | null>} obj
* @param {string} [sep]
* @param {string} [eq]
* @param {{ encodeURIComponent?: (v: string) => string }} [options]
* @param {string} [eq]
* @param {{ encodeURIComponent?: (v: string) => string }} [options]
* @returns {string}
*/
function stringify(obj, sep, eq, options) {
Expand Down Expand Up @@ -270,7 +270,7 @@ function stringify(obj, sep, eq, options) {
}

/**
* @param {string} str
* @param {string} str
* @returns {number[]}
*/
function charCodes(str) {
Expand Down