diff --git a/src/base/BaseTwilio.ts b/src/base/BaseTwilio.ts index 7c8d900543..05c0f02d6d 100644 --- a/src/base/BaseTwilio.ts +++ b/src/base/BaseTwilio.ts @@ -1,5 +1,6 @@ import RequestClient from "./RequestClient"; /* jshint ignore:line */ import { HttpMethod } from "../interfaces"; /* jshint ignore:line */ +import { Headers } from "../http/request"; /* jshint ignore:line */ const os = require("os"); /* jshint ignore:line */ const url = require("url"); /* jshint ignore:line */ @@ -143,7 +144,7 @@ namespace Twilio { const username = opts.username || this.username; const password = opts.password || this.password; - const headers: any = opts.headers || {}; + const headers = opts.headers || {}; const pkgVersion = moduleInfo.version; const osName = os.platform(); diff --git a/tsconfig.json b/tsconfig.json index a99ed63d38..3e0fc0a952 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { "target": "es2020", + "lib": ["es2020"], "module": "commonjs", "declaration": true, "esModuleInterop": true,