Socket
Socket
Sign inDemoInstall

@types/qs

Package Overview
Dependencies
0
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.9.13 to 6.9.14

31

qs/index.d.ts

@@ -16,4 +16,4 @@ export = QueryString;

encoder?:
| ((str: any, defaultEncoder: defaultEncoder, charset: string, type: "key" | "value") => string)
| undefined;
| ((str: any, defaultEncoder: defaultEncoder, charset: string, type: "key" | "value") => string)
| undefined;
filter?: Array<string | number> | ((prefix: string, value: any) => any) | undefined;

@@ -32,6 +32,8 @@ arrayFormat?: "indices" | "brackets" | "repeat" | "comma" | undefined;

type IStringifyDynamicOptions<AllowDots extends BooleanOptional> = AllowDots extends true
? { allowDots?: AllowDots, encodeDotInKeys?: boolean }
: { allowDots?: boolean, encodeDotInKeys?: false }
? { allowDots?: AllowDots; encodeDotInKeys?: boolean }
: { allowDots?: boolean; encodeDotInKeys?: false };
type IStringifyOptions<AllowDots extends BooleanOptional = undefined> = IStringifyBaseOptions & IStringifyDynamicOptions<AllowDots>
type IStringifyOptions<AllowDots extends BooleanOptional = undefined> =
& IStringifyBaseOptions
& IStringifyDynamicOptions<AllowDots>;

@@ -43,4 +45,4 @@ interface IParseBaseOptions {

decoder?:
| ((str: string, defaultDecoder: defaultDecoder, charset: string, type: "key" | "value") => any)
| undefined;
| ((str: string, defaultDecoder: defaultDecoder, charset: string, type: "key" | "value") => any)
| undefined;
arrayLimit?: number | undefined;

@@ -58,10 +60,12 @@ parseArrays?: boolean | undefined;

allowEmptyArrays?: boolean | undefined;
duplicates?: 'combine' | 'first' | 'last' | undefined;
duplicates?: "combine" | "first" | "last" | undefined;
}
type IParseDynamicOptions<AllowDots extends BooleanOptional> = AllowDots extends true
? { allowDots?: AllowDots, decodeDotInKeys?: boolean }
: { allowDots?: boolean, decodeDotInKeys?: false }
? { allowDots?: AllowDots; decodeDotInKeys?: boolean }
: { allowDots?: boolean; decodeDotInKeys?: false };
type IParseOptions<AllowDots extends BooleanOptional = undefined> = IParseBaseOptions & IParseDynamicOptions<AllowDots>
type IParseOptions<AllowDots extends BooleanOptional = undefined> =
& IParseBaseOptions
& IParseDynamicOptions<AllowDots>;

@@ -74,3 +78,6 @@ interface ParsedQs {

function parse(str: string, options?: IParseOptions<BooleanOptional> & { decoder?: never | undefined }): ParsedQs;
function parse(str: string | Record<string, string>, options?: IParseOptions<BooleanOptional>): { [key: string]: unknown };
function parse(
str: string | Record<string, string>,
options?: IParseOptions<BooleanOptional>,
): { [key: string]: unknown };
}
{
"name": "@types/qs",
"version": "6.9.13",
"version": "6.9.14",
"description": "TypeScript definitions for qs",

@@ -63,4 +63,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/qs",

"dependencies": {},
"typesPublisherContentHash": "3f7e2ee4ebf0be590fb4d4090adb4a99e54efe73ff69ce25e4e9c454fa15405b",
"typesPublisherContentHash": "06e68a992b8160a3fe1a7cf06328d871215880d4874d9255acf6d516f10e52f6",
"typeScriptVersion": "4.7"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Mon, 18 Mar 2024 19:06:42 GMT
* Last updated: Wed, 20 Mar 2024 16:08:27 GMT
* Dependencies: none

@@ -14,0 +14,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc