Skip to content

Commit bfd6665

Browse files
committed
chore: use official type for sendfunction
1 parent 273d5fc commit bfd6665

File tree

1 file changed

+1
-1
lines changed
  • experimental/packages/opentelemetry-instrumentation-xml-http-request/src

1 file changed

+1
-1
lines changed

experimental/packages/opentelemetry-instrumentation-xml-http-request/src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export type OpenFunction = (
3030
/**
3131
* method "send" from XMLHttpRequest
3232
*/
33-
export type SendFunction = (body?: SendBody) => void;
33+
export type SendFunction = typeof XMLHttpRequest.prototype.send;
3434

3535
export type SendBody =
3636
| string

0 commit comments

Comments
 (0)