From 35a4efd52beb081a272fb2095f114a007a9cccf6 Mon Sep 17 00:00:00 2001 From: Simon VDB Date: Thu, 3 Jan 2019 16:29:08 +0100 Subject: [PATCH 1/2] add `sort` to StringifyOptions Adds the sort option thats available in the query string package. --- types/query-string/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/query-string/index.d.ts b/types/query-string/index.d.ts index 6e560f57e9..81c10fb086 100644 --- a/types/query-string/index.d.ts +++ b/types/query-string/index.d.ts @@ -33,6 +33,7 @@ export interface StringifyOptions { strict?: boolean; encode?: boolean; arrayFormat?: 'bracket' | 'index' | 'none'; + sort?: ((m: string, n: string) => boolean) | boolean; } /** From 9284ed563bcac4f67cf23b7cf0b73935f18408a5 Mon Sep 17 00:00:00 2001 From: Simon VDB Date: Thu, 3 Jan 2019 16:35:10 +0100 Subject: [PATCH 2/2] Add to contributor list --- types/query-string/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/query-string/index.d.ts b/types/query-string/index.d.ts index 81c10fb086..3eaf34c159 100644 --- a/types/query-string/index.d.ts +++ b/types/query-string/index.d.ts @@ -1,10 +1,11 @@ -// Type definitions for query-string 6.1 +// Type definitions for query-string 6.2 // Project: https://github.com/sindresorhus/query-string // Definitions by: Sam Verschueren // Tanguy Krotoff // HuHuanming // Madara Uchiha // Josh Holmer +// Simon Van den Broeck // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2