diff --git a/experimental/packages/opentelemetry-instrumentation-xml-http-request/src/types.ts b/experimental/packages/opentelemetry-instrumentation-xml-http-request/src/types.ts index d3c02e117d..430e9e217b 100644 --- a/experimental/packages/opentelemetry-instrumentation-xml-http-request/src/types.ts +++ b/experimental/packages/opentelemetry-instrumentation-xml-http-request/src/types.ts @@ -30,7 +30,7 @@ export type OpenFunction = ( /** * method "send" from XMLHttpRequest */ -export type SendFunction = (body?: SendBody) => void; +export type SendFunction = typeof XMLHttpRequest.prototype.send; export type SendBody = | string diff --git a/tsconfig.base.json b/tsconfig.base.json index 2d628cad8d..ca44078430 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -19,7 +19,8 @@ "sourceMap": true, "strict": true, "strictNullChecks": true, - "target": "es2017" + "target": "es2017", + "useUnknownInCatchVariables": false }, "exclude": [ "node_modules"