mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-16 12:50:42 +08:00
node: signatures of module "querystring" have been changed
This commit is contained in:
1 parent
4dc5ab8736
commit
0eef583c76
2 files changed
+51
-10
No files matched your search
Vendored
+12
-2
@@ -405,8 +405,18 @@ declare module "buffer" {
|
||||
}
|
||||
|
||||
declare module "querystring" {
|
||||
export function stringify(obj: any, sep?: string, eq?: string): string;
|
||||
export function parse(str: string, sep?: string, eq?: string, options?: { maxKeys?: number; }): any;
|
||||
export interface StringifyOptions {
|
||||
encodeURIComponent?: Function;
|
||||
}
|
||||
|
||||
export interface ParseOptions {
|
||||
maxKeys?: number;
|
||||
decodeURIComponent?: Function;
|
||||
}
|
||||
|
||||
export function stringify<T>(obj: T, sep?: string, eq?: string, options?: StringifyOptions): string;
|
||||
export function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): any;
|
||||
export function parse<T extends {}>(str: string, sep?: string, eq?: string, options?: ParseOptions): T;
|
||||
export function escape(str: string): string;
|
||||
export function unescape(str: string): string;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user