@types/query-string
Advanced tools
Comparing version 4.3.0 to 4.3.1
@@ -7,34 +7,31 @@ // Type definitions for query-string 4.3 | ||
declare module "query-string" { | ||
export interface ParseOptions { | ||
arrayFormat?: 'bracket' | 'index' | 'none'; | ||
} | ||
interface ParseOptions { | ||
arrayFormat?: 'bracket' | 'index' | 'none'; | ||
} | ||
/** | ||
* Parse a query string into an object. | ||
* Leading ? or # are ignored, so you can pass location.search or location.hash directly. | ||
* @param str | ||
*/ | ||
export function parse(str: string, options?: ParseOptions): any; | ||
/** | ||
* Parse a query string into an object. | ||
* Leading ? or # are ignored, so you can pass location.search or location.hash directly. | ||
* @param str | ||
*/ | ||
export function parse(str: string, options?: ParseOptions): any; | ||
export interface StringifyOptions { | ||
strict?: boolean; | ||
encode?: boolean; | ||
arrayFormat?: 'bracket' | 'index' | 'none'; | ||
} | ||
interface StringifyOptions { | ||
strict?: boolean; | ||
encode?: boolean; | ||
arrayFormat?: 'bracket' | 'index' | 'none'; | ||
} | ||
/** | ||
* Stringify an object into a query string, sorting the keys. | ||
* | ||
* @param obj | ||
*/ | ||
export function stringify(obj: object, options?: StringifyOptions): string; | ||
/** | ||
* Stringify an object into a query string, sorting the keys. | ||
* | ||
* @param obj | ||
*/ | ||
export function stringify(obj: object, options?: StringifyOptions): string; | ||
/** | ||
* Extract a query string from a URL that can be passed into .parse(). | ||
* | ||
* @param str | ||
*/ | ||
export function extract(str: string): string; | ||
} | ||
/** | ||
* Extract a query string from a URL that can be passed into .parse(). | ||
* | ||
* @param str | ||
*/ | ||
export function extract(str: string): string; |
{ | ||
"name": "@types/query-string", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "TypeScript definitions for query-string", | ||
@@ -24,4 +24,4 @@ "license": "MIT", | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "4c13d6714ac2e7024513337c80486d15b36e3276bcb6d95f4a2865f52732e793", | ||
"typesPublisherContentHash": "d3db1a644c0495b74ef36629c4a6ef675b57a946d2bb34573f5dfa66fb6c17c6", | ||
"typeScriptVersion": "2.2" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/query-string | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/query-string | ||
Additional Details | ||
* Last updated: Wed, 22 Mar 2017 18:19:15 GMT | ||
* Last updated: Fri, 31 Mar 2017 18:05:15 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2393
31