Skip to content

Commit

Permalink
Fixing axios#3219 by referencing DOM build-in library
Browse files Browse the repository at this point in the history
Just following @trgwii suggestion.
Works for me at least.

Triple slash directives are supported from typescript 3
so I updated the dependency to ^3.9.7
this might be a breaking change
  • Loading branch information
Guillaume Mayer committed Aug 22, 2020
1 parent 0d87655 commit 05c3dfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference lib="DOM" />

export interface AxiosTransformer {
(data: any, headers?: any): any;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"minimist": "^1.2.0",
"mocha": "^5.2.0",
"sinon": "^4.5.0",
"typescript": "^2.8.1",
"typescript": "^3.9.7",
"url-search-params": "^0.10.0",
"webpack": "^1.13.1",
"webpack-dev-server": "^1.14.1"
Expand Down

0 comments on commit 05c3dfd

Please sign in to comment.