mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-06 16:20:26 +08:00
qs should be any
if qs is defined as an object type then if we want to access it like
this it will generate an error :
var requestOpt: request.Options = {
json: true,
qs: {
param1: '',
param2: {}
},
url: '',
};
requestOpt.qs.param1 // <= error
This commit is contained in:
Vendored
+1
-1
@@ -67,7 +67,7 @@ declare module 'request' {
|
||||
oauth?: OAuthOptions;
|
||||
aws?: AWSOptions;
|
||||
hawk ?: HawkOptions;
|
||||
qs?: Object;
|
||||
qs?: any;
|
||||
json?: any;
|
||||
multipart?: RequestPart[];
|
||||
agentOptions?: any;
|
||||
|
||||
Reference in New Issue
Block a user