Skip to content

Commit

Permalink
fix: 支持 TypeScript 4
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Aug 21, 2020
1 parent 42f96c3 commit b0128d6
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 36 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"ts-essentials": "7.0.0",
"ts-node": "8.10.2",
"type-fest": "0.16.0",
"typescript": "3.9.7",
"typescript": "4.0.2",
"typescript-snapshots-plugin": "1.7.0",
"vscode-generate-index-standalone": "1.3.0"
},
Expand Down
81 changes: 46 additions & 35 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/utils/RichUrl.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ describe('RichUrl', () => {
})

afterAll(() => {
// @ts-ignore
delete window.URL.createObjectURL
})

Expand Down Expand Up @@ -143,6 +144,7 @@ describe('RichUrl', () => {
})

afterAll(() => {
// @ts-ignore
delete window.URL.createObjectURL
window.XMLHttpRequest.prototype.send = rawSend
})
Expand Down Expand Up @@ -188,6 +190,7 @@ describe('RichUrl', () => {
})

afterAll(() => {
// @ts-ignore
delete window.URL.createObjectURL
window.XMLHttpRequest.prototype.send = rawSend
})
Expand Down

0 comments on commit b0128d6

Please sign in to comment.