diff --git a/types/urllib/index.d.ts b/types/urllib/index.d.ts index 94c77bb319..ba7e701064 100644 --- a/types/urllib/index.d.ts +++ b/types/urllib/index.d.ts @@ -47,7 +47,7 @@ export interface IRequestOptions { /** Fix the control characters (U+0000 through U+001F) before JSON parse response. Default is false. */ fixJSONCtlChars?: boolean; /** Request headers. */ - headers?: Object; + headers?: { [key: string]: any }; /** * Request timeout in milliseconds for connecting phase and response receiving phase. * Defaults to exports. @@ -110,7 +110,7 @@ export interface IRequestOptions { /** Enable proxy request, default is false. */ enableProxy?: boolean; /** proxy agent uri or options, default is null. */ - proxy?: string | Object; + proxy?: string | { [key: string]: any }; } /** diff --git a/types/urllib/tslint.json b/types/urllib/tslint.json index aa052470bd..6d0aec7baa 100644 --- a/types/urllib/tslint.json +++ b/types/urllib/tslint.json @@ -1,7 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "ban-types": false, "interface-name": true, "void-return": false, "strict-export-declare-modifiers": false