@types/qs
Advanced tools
Comparing version 6.9.6 to 6.9.7
@@ -21,36 +21,36 @@ // Type definitions for qs 6.9 | ||
interface IStringifyOptions { | ||
delimiter?: string; | ||
strictNullHandling?: boolean; | ||
skipNulls?: boolean; | ||
encode?: boolean; | ||
encoder?: (str: any, defaultEncoder: defaultEncoder, charset: string, type: 'key' | 'value') => string; | ||
filter?: Array<string | number> | ((prefix: string, value: any) => any); | ||
arrayFormat?: 'indices' | 'brackets' | 'repeat' | 'comma'; | ||
indices?: boolean; | ||
sort?: (a: any, b: any) => number; | ||
serializeDate?: (d: Date) => string; | ||
format?: 'RFC1738' | 'RFC3986'; | ||
encodeValuesOnly?: boolean; | ||
addQueryPrefix?: boolean; | ||
allowDots?: boolean; | ||
charset?: 'utf-8' | 'iso-8859-1'; | ||
charsetSentinel?: boolean; | ||
delimiter?: string | undefined; | ||
strictNullHandling?: boolean | undefined; | ||
skipNulls?: boolean | undefined; | ||
encode?: boolean | undefined; | ||
encoder?: ((str: any, defaultEncoder: defaultEncoder, charset: string, type: 'key' | 'value') => string) | undefined; | ||
filter?: Array<string | number> | ((prefix: string, value: any) => any) | undefined; | ||
arrayFormat?: 'indices' | 'brackets' | 'repeat' | 'comma' | undefined; | ||
indices?: boolean | undefined; | ||
sort?: ((a: any, b: any) => number) | undefined; | ||
serializeDate?: ((d: Date) => string) | undefined; | ||
format?: 'RFC1738' | 'RFC3986' | undefined; | ||
encodeValuesOnly?: boolean | undefined; | ||
addQueryPrefix?: boolean | undefined; | ||
allowDots?: boolean | undefined; | ||
charset?: 'utf-8' | 'iso-8859-1' | undefined; | ||
charsetSentinel?: boolean | undefined; | ||
} | ||
interface IParseOptions { | ||
comma?: boolean; | ||
delimiter?: string | RegExp; | ||
depth?: number | false; | ||
decoder?: (str: string, defaultDecoder: defaultDecoder, charset: string, type: 'key' | 'value') => any; | ||
arrayLimit?: number; | ||
parseArrays?: boolean; | ||
allowDots?: boolean; | ||
plainObjects?: boolean; | ||
allowPrototypes?: boolean; | ||
parameterLimit?: number; | ||
strictNullHandling?: boolean; | ||
ignoreQueryPrefix?: boolean; | ||
charset?: 'utf-8' | 'iso-8859-1'; | ||
charsetSentinel?: boolean; | ||
interpretNumericEntities?: boolean; | ||
comma?: boolean | undefined; | ||
delimiter?: string | RegExp | undefined; | ||
depth?: number | false | undefined; | ||
decoder?: ((str: string, defaultDecoder: defaultDecoder, charset: string, type: 'key' | 'value') => any) | undefined; | ||
arrayLimit?: number | undefined; | ||
parseArrays?: boolean | undefined; | ||
allowDots?: boolean | undefined; | ||
plainObjects?: boolean | undefined; | ||
allowPrototypes?: boolean | undefined; | ||
parameterLimit?: number | undefined; | ||
strictNullHandling?: boolean | undefined; | ||
ignoreQueryPrefix?: boolean | undefined; | ||
charset?: 'utf-8' | 'iso-8859-1' | undefined; | ||
charsetSentinel?: boolean | undefined; | ||
interpretNumericEntities?: boolean | undefined; | ||
} | ||
@@ -61,4 +61,4 @@ | ||
function stringify(obj: any, options?: IStringifyOptions): string; | ||
function parse(str: string, options?: IParseOptions & { decoder?: never }): ParsedQs; | ||
function parse(str: string, options?: IParseOptions & { decoder?: never | undefined }): ParsedQs; | ||
function parse(str: string | Record<string, string>, options?: IParseOptions): { [key: string]: unknown }; | ||
} |
{ | ||
"name": "@types/qs", | ||
"version": "6.9.6", | ||
"version": "6.9.7", | ||
"description": "TypeScript definitions for qs", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/qs", | ||
"license": "MIT", | ||
@@ -62,4 +63,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "ed1e4bee2cc164dc642a0181f4dc67b58920c0255611cd679ffdeb6ba5ea7ff9", | ||
"typeScriptVersion": "3.5" | ||
"typesPublisherContentHash": "b33fed3eed022f94c7db53593571f370eaa77aa17b3e302dc1bd77304f03e56c", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Sun, 07 Mar 2021 09:24:34 GMT | ||
* Last updated: Wed, 07 Jul 2021 17:02:42 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `qs` |
7001