Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | declare module 'querystring' {
|
---|
2 | interface StringifyOptions {
|
---|
3 | encodeURIComponent?: ((str: string) => string) | undefined;
|
---|
4 | }
|
---|
5 |
|
---|
6 | interface ParseOptions {
|
---|
7 | maxKeys?: number | undefined;
|
---|
8 | decodeURIComponent?: ((str: string) => string) | undefined;
|
---|
9 | }
|
---|
10 |
|
---|
11 | interface ParsedUrlQuery { [key: string]: string | string[]; }
|
---|
12 |
|
---|
13 | interface ParsedUrlQueryInput {
|
---|
14 | [key: string]: string | number | boolean | ReadonlyArray<string> | ReadonlyArray<number> | ReadonlyArray<boolean> | undefined | null;
|
---|
15 | }
|
---|
16 |
|
---|
17 | function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string;
|
---|
18 | function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery;
|
---|
19 | /**
|
---|
20 | * The querystring.encode() function is an alias for querystring.stringify().
|
---|
21 | */
|
---|
22 | const encode: typeof stringify;
|
---|
23 | /**
|
---|
24 | * The querystring.decode() function is an alias for querystring.parse().
|
---|
25 | */
|
---|
26 | const decode: typeof parse;
|
---|
27 | function escape(str: string): string;
|
---|
28 | function unescape(str: string): string;
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.