mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-23 17:22:43 +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 | ||