fix lint rule about Object

This commit is contained in:
SoraYama
2018-02-14 13:35:42 +08:00
parent ba6b1b9430
commit 32e596c7ef
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -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 };
}
/**
-1
View File
@@ -1,7 +1,6 @@
{
"extends": "dtslint/dt.json",
"rules": {
"ban-types": false,
"interface-name": true,
"void-return": false,
"strict-export-declare-modifiers": false