chore: fix the compilation for typescript 4.4 (#2623)

This commit is contained in:
Daniel Dyla 2021-11-15 15:14:02 -05:00 committed by GitHub
parent b9dffcafd3
commit d128f0ff4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -19,7 +19,8 @@
"sourceMap": true,
"strict": true,
"strictNullChecks": true,
"target": "es2017"
"target": "es2017",
"useUnknownInCatchVariables": false
},
"exclude": [
"node_modules"