Comparing version
@@ -1,13 +0,1 @@ | ||
// Type definitions for qs 6.9 | ||
// Project: https://github.com/ljharb/qs | ||
// Definitions by: Roman Korneev <https://github.com/RWander> | ||
// Leon Yu <https://github.com/leonyu> | ||
// Belinda Teh <https://github.com/tehbelinda> | ||
// Melvin Lee <https://github.com/zyml> | ||
// Arturs Vonda <https://github.com/artursvonda> | ||
// Carlos Bonetti <https://github.com/CarlosBonetti> | ||
// Dan Smith <https://github.com/dpsmith3> | ||
// Hunter Perrin <https://github.com/hperrin> | ||
// Jordan Harband <https://github.com/ljharb> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
export = QueryString; | ||
@@ -14,0 +2,0 @@ export as namespace qs; |
{ | ||
"name": "@types/qs", | ||
"version": "6.9.8", | ||
"version": "6.9.9", | ||
"description": "TypeScript definitions for qs", | ||
@@ -10,44 +10,44 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/qs", | ||
"name": "Roman Korneev", | ||
"url": "https://github.com/RWander", | ||
"githubUsername": "RWander" | ||
"githubUsername": "RWander", | ||
"url": "https://github.com/RWander" | ||
}, | ||
{ | ||
"name": "Leon Yu", | ||
"url": "https://github.com/leonyu", | ||
"githubUsername": "leonyu" | ||
"githubUsername": "leonyu", | ||
"url": "https://github.com/leonyu" | ||
}, | ||
{ | ||
"name": "Belinda Teh", | ||
"url": "https://github.com/tehbelinda", | ||
"githubUsername": "tehbelinda" | ||
"githubUsername": "tehbelinda", | ||
"url": "https://github.com/tehbelinda" | ||
}, | ||
{ | ||
"name": "Melvin Lee", | ||
"url": "https://github.com/zyml", | ||
"githubUsername": "zyml" | ||
"githubUsername": "zyml", | ||
"url": "https://github.com/zyml" | ||
}, | ||
{ | ||
"name": "Arturs Vonda", | ||
"url": "https://github.com/artursvonda", | ||
"githubUsername": "artursvonda" | ||
"githubUsername": "artursvonda", | ||
"url": "https://github.com/artursvonda" | ||
}, | ||
{ | ||
"name": "Carlos Bonetti", | ||
"url": "https://github.com/CarlosBonetti", | ||
"githubUsername": "CarlosBonetti" | ||
"githubUsername": "CarlosBonetti", | ||
"url": "https://github.com/CarlosBonetti" | ||
}, | ||
{ | ||
"name": "Dan Smith", | ||
"url": "https://github.com/dpsmith3", | ||
"githubUsername": "dpsmith3" | ||
"githubUsername": "dpsmith3", | ||
"url": "https://github.com/dpsmith3" | ||
}, | ||
{ | ||
"name": "Hunter Perrin", | ||
"url": "https://github.com/hperrin", | ||
"githubUsername": "hperrin" | ||
"githubUsername": "hperrin", | ||
"url": "https://github.com/hperrin" | ||
}, | ||
{ | ||
"name": "Jordan Harband", | ||
"url": "https://github.com/ljharb", | ||
"githubUsername": "ljharb" | ||
"githubUsername": "ljharb", | ||
"url": "https://github.com/ljharb" | ||
} | ||
@@ -64,4 +64,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "b958a7001e037ec7b965c8c760bb8a500c4f6e4d9cc575bd5f8bead56fa20afd", | ||
"typeScriptVersion": "4.3" | ||
"typesPublisherContentHash": "85b611d9e94f698fb82ab3268ba91cc09cfb2b698e784ce665eb08c083cb5895", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -9,9 +9,68 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/qs. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/qs/index.d.ts) | ||
````ts | ||
export = QueryString; | ||
export as namespace qs; | ||
declare namespace QueryString { | ||
type defaultEncoder = (str: any, defaultEncoder?: any, charset?: string) => string; | ||
type defaultDecoder = (str: string, decoder?: any, charset?: string) => string; | ||
interface IStringifyOptions { | ||
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 | 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; | ||
} | ||
interface ParsedQs { | ||
[key: string]: undefined | string | string[] | ParsedQs | ParsedQs[]; | ||
} | ||
function stringify(obj: any, options?: IStringifyOptions): string; | ||
function parse(str: string, options?: IParseOptions & { decoder?: never | undefined }): ParsedQs; | ||
function parse(str: string | Record<string, string>, options?: IParseOptions): { [key: string]: unknown }; | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Wed, 30 Aug 2023 19:35:25 GMT | ||
* Last updated: Wed, 18 Oct 2023 05:47:09 GMT | ||
* Dependencies: none | ||
* Global values: `qs` | ||
# Credits | ||
These definitions were written by [Roman Korneev](https://github.com/RWander), [Leon Yu](https://github.com/leonyu), [Belinda Teh](https://github.com/tehbelinda), [Melvin Lee](https://github.com/zyml), [Arturs Vonda](https://github.com/artursvonda), [Carlos Bonetti](https://github.com/CarlosBonetti), [Dan Smith](https://github.com/dpsmith3), [Hunter Perrin](https://github.com/hperrin), and [Jordan Harband](https://github.com/ljharb). |
8928
26.35%76
347.06%51
-19.05%