Completed
Push — master ( 8d09a6...0dd02f )
by Dimas
31:45 queued 17:08
created

libs/typings/node/querystring.d.ts   A

Complexity

Total Complexity 4
Complexity/F 1

Size

Lines of Code 29
Function Count 4

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 19
dl 0
loc 29
rs 10
c 0
b 0
f 0
wmc 4
mnd 0
bc 0
fnc 4
bpm 0
cpm 1
noi 0
1
declare module "querystring" {
2
    interface StringifyOptions {
3
        encodeURIComponent?: (str: string) => string;
4
    }
5
6
    interface ParseOptions {
7
        maxKeys?: number;
8
        decodeURIComponent?: (str: string) => string;
9
    }
10
11
    interface ParsedUrlQuery extends NodeJS.Dict<string | string[]> { }
12
13
    interface ParsedUrlQueryInput extends NodeJS.Dict<string | number | boolean | string[] | number[] | boolean[] | null> {
14
    }
15
16
    function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string;
17
    function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery;
18
    /**
19
     * The querystring.encode() function is an alias for querystring.stringify().
20
     */
21
    const encode: typeof stringify;
22
    /**
23
     * The querystring.decode() function is an alias for querystring.parse().
24
     */
25
    const decode: typeof parse;
26
    function escape(str: string): string;
27
    function unescape(str: string): string;
28
}
29