mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
36 lines
960 B
TypeScript
36 lines
960 B
TypeScript
// Type definitions for qs
|
|
// Project: https://github.com/hapijs/qs
|
|
// Definitions by: Roman Korneev <https://github.com/RWander>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
declare module QueryString {
|
|
interface IStringifyOptions {
|
|
delimiter?: string;
|
|
strictNullHandling?: boolean;
|
|
skipNulls?: boolean;
|
|
encode?: boolean;
|
|
filter?: any;
|
|
arrayFormat?: any;
|
|
indices?: string;
|
|
}
|
|
|
|
interface IParseOptions {
|
|
delimiter?: string;
|
|
depth?: number;
|
|
arrayLimit?: number;
|
|
parseArrays?: boolean;
|
|
allowDots?: boolean;
|
|
plainObjects?: boolean;
|
|
allowPrototypes?: boolean;
|
|
parameterLimit?: number;
|
|
strictNullHandling?: boolean;
|
|
}
|
|
|
|
function stringify(obj: any, options?: IStringifyOptions): string;
|
|
function parse(str: string, options?: IParseOptions): any;
|
|
}
|
|
|
|
declare module "qs" {
|
|
export = QueryString;
|
|
}
|