Merge pull request #31864 from Jarrku/patch-1

[query-string] Add `sort` to StringifyOptions
This commit is contained in:
Sheetal Nandi
2019-01-03 12:50:30 -08:00
committed by GitHub
+3 -1
View File
@@ -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 <https://github.com/SamVerschueren>
// Tanguy Krotoff <https://github.com/tkrotoff>
// HuHuanming <https://github.com/huhuanming>
// Madara Uchiha <https://github.com/MadaraUchiha>
// Josh Holmer <https://github.com/shssoichiro>
// Simon Van den Broeck <https://github.com/jarrku>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
@@ -33,6 +34,7 @@ export interface StringifyOptions {
strict?: boolean;
encode?: boolean;
arrayFormat?: 'bracket' | 'index' | 'none';
sort?: ((m: string, n: string) => boolean) | boolean;
}
/**