chore: upgrade to typescript 4.1

This commit is contained in:
Satyajit Sahoo
2020-12-03 01:56:28 +01:00
parent 12b893d7ca
commit 65d8b487f8
16 changed files with 25 additions and 25 deletions

View File

@@ -52,7 +52,7 @@
"react": "~16.13.1",
"react-dom": "^16.13.1",
"react-native": "~0.63.2",
"typescript": "^4.0.3"
"typescript": "^4.1.2"
},
"peerDependencies": {
"react": "*",

View File

@@ -134,7 +134,7 @@ const createMemoryHistory = () => {
// - There's history to go back, `history.go` is called, and `popstate` fires
// - `history.go` is called multiple times, we need to resolve on respective `popstate`
// - No history to go back, but `history.go` was called, browser has no API to detect it
return new Promise((resolve, reject) => {
return new Promise<void>((resolve, reject) => {
const done = (interrupted?: boolean) => {
clearTimeout(timer);