mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-28 20:35:19 +08:00
chore: upgrade to typescript 4.1
This commit is contained in:
@@ -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": "*",
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user