querystringSingleKey() — typescript-sdk Function Reference
Architecture documentation for the querystringSingleKey() function in runtime.ts from the typescript-sdk codebase.
Entity Profile
Dependency Diagram
graph TD e25bded1_7d63_545b_1f65_626af86f45d6["querystringSingleKey()"] b4ef90f5_38ba_4ed1_8ac3_6d78a889d7ba["querystring()"] b4ef90f5_38ba_4ed1_8ac3_6d78a889d7ba -->|calls| e25bded1_7d63_545b_1f65_626af86f45d6 b4ef90f5_38ba_4ed1_8ac3_6d78a889d7ba["querystring()"] e25bded1_7d63_545b_1f65_626af86f45d6 -->|calls| b4ef90f5_38ba_4ed1_8ac3_6d78a889d7ba style e25bded1_7d63_545b_1f65_626af86f45d6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/runtime.ts lines 320–338
function querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery, keyPrefix: string = ''): string {
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
if (value instanceof Array) {
const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
.join(`&${encodeURIComponent(fullKey)}=`);
return `${encodeURIComponent(fullKey)}=${multiValue}`;
}
if (value instanceof Set) {
const valueAsArray = Array.from(value);
return querystringSingleKey(key, valueAsArray, keyPrefix);
}
if (value instanceof Date) {
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
}
if (value instanceof Object) {
return querystring(value as HTTPQuery, fullKey);
}
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does querystringSingleKey() do?
querystringSingleKey() is a function in the typescript-sdk codebase.
What does querystringSingleKey() call?
querystringSingleKey() calls 1 function(s): querystring.
What calls querystringSingleKey()?
querystringSingleKey() is called by 1 function(s): querystring.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free