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:
Laurent, David | ISDOD
2015-09-18 14:03:53 +09:00
parent 6f6e5c7dd9
commit 14a002c077
+1 -1
View File
@@ -67,7 +67,7 @@ declare module 'request' {
oauth?: OAuthOptions;
aws?: AWSOptions;
hawk ?: HawkOptions;
qs?: Object;
qs?: any;
json?: any;
multipart?: RequestPart[];
agentOptions?: any;