summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/@types/node/querystring.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wiki/ImportarDesdeURL/node_modules/@types/node/querystring.d.ts')
-rw-r--r--bin/wiki/ImportarDesdeURL/node_modules/@types/node/querystring.d.ts32
1 files changed, 32 insertions, 0 deletions
diff --git a/bin/wiki/ImportarDesdeURL/node_modules/@types/node/querystring.d.ts b/bin/wiki/ImportarDesdeURL/node_modules/@types/node/querystring.d.ts
new file mode 100644
index 00000000..23359d9d
--- /dev/null
+++ b/bin/wiki/ImportarDesdeURL/node_modules/@types/node/querystring.d.ts
@@ -0,0 +1,32 @@
+declare module "querystring" {
+ interface StringifyOptions {
+ encodeURIComponent?: (str: string) => string;
+ }
+
+ interface ParseOptions {
+ maxKeys?: number;
+ decodeURIComponent?: (str: string) => string;
+ }
+
+ interface ParsedUrlQuery { [key: string]: string | string[]; }
+
+ interface ParsedUrlQueryInput {
+ [key: string]:
+ // The value type here is a "poor man's `unknown`". When these types support TypeScript
+ // 3.0+, we can replace this with `unknown`.
+ {} | null | undefined;
+ }
+
+ function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string;
+ function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery;
+ /**
+ * The querystring.encode() function is an alias for querystring.stringify().
+ */
+ const encode: typeof stringify;
+ /**
+ * The querystring.decode() function is an alias for querystring.parse().
+ */
+ const decode: typeof parse;
+ function escape(str: string): string;
+ function unescape(str: string): string;
+}