mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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
|
||
|---|---|---|
| .. | ||
| request-tests.ts | ||
| request.d.ts | ||