Skip to content

Commit

Permalink
chore: fix the compilation for typescript 4.4 (#2623)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan authored Nov 15, 2021
1 parent b9dffca commit d128f0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"sourceMap": true,
"strict": true,
"strictNullChecks": true,
"target": "es2017"
"target": "es2017",
"useUnknownInCatchVariables": false
},
"exclude": [
"node_modules"
Expand Down

0 comments on commit d128f0f

Please sign in to comment.