mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
support strictNullChecks (#14844)
better reflect the documented and implemented API
This commit is contained in:
parent
e849164bf3
commit
0e2384e4d3
2
query-string/index.d.ts
vendored
2
query-string/index.d.ts
vendored
@ -13,7 +13,7 @@ declare module "query-string" {
|
||||
* Leading ? or # are ignored, so you can pass location.search or location.hash directly.
|
||||
* @param str
|
||||
*/
|
||||
export function parse(str: string): { [key: string]: string | string[] };
|
||||
export function parse(str: string): { [key: string]: string | string[] | null };
|
||||
|
||||
/**
|
||||
* Stringify an object into a query string, sorting the keys.
|
||||
|
||||
@ -21,7 +21,7 @@ namespace stringify_tests {
|
||||
}
|
||||
|
||||
namespace parse_tests {
|
||||
let result: { [key: string]: string | string[] };
|
||||
let result: { [key: string]: string | string[] | null };
|
||||
result = qs.parse('?foo=bar');
|
||||
result = qs.parse('#foo=bar');
|
||||
result = qs.parse('&foo=bar&foo=baz');
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user