mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
564 B
TypeScript
18 lines
564 B
TypeScript
declare module "querystring" {
|
|
interface StringifyOptions {
|
|
encodeURIComponent?: Function;
|
|
}
|
|
|
|
interface ParseOptions {
|
|
maxKeys?: number;
|
|
decodeURIComponent?: Function;
|
|
}
|
|
|
|
interface ParsedUrlQuery { [key: string]: string | string[]; }
|
|
|
|
function stringify(obj?: {}, sep?: string, eq?: string, options?: StringifyOptions): string;
|
|
function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery;
|
|
function escape(str: string): string;
|
|
function unescape(str: string): string;
|
|
}
|