Skip to content

Commit 68c1305

Browse files
committed
fix type
1 parent 99d01a2 commit 68c1305

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

Example/testHotUpdate/bun.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/testHotUpdate/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"react-native-paper": "^5.14.5",
2222
"react-native-safe-area-context": "^5.6.2",
2323
"react-native-svg": "^15.15.0",
24-
"react-native-update": "^10.37.0",
24+
"react-native-update": "^10.37.2",
2525
"react-native-vector-icons": "^10.3.0"
2626
},
2727
"devDependencies": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-update",
3-
"version": "10.37.2",
3+
"version": "10.37.3",
44
"description": "react-native hot update",
55
"main": "src/index",
66
"scripts": {

src/type.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ export interface ClientOptions {
9898
dismissErrorAfter?: number;
9999
debug?: boolean;
100100
throwError?: boolean;
101-
beforeCheckUpdate?: () => Promise<boolean>;
102-
beforeDownloadUpdate?: (info: CheckResult) => Promise<boolean>;
103-
afterDownloadUpdate?: (info: CheckResult) => Promise<boolean>;
104-
onPackageExpired?: (info: CheckResult) => Promise<boolean>;
101+
beforeCheckUpdate?: () => Promise<boolean> | boolean;
102+
beforeDownloadUpdate?: (info: CheckResult) => Promise<boolean> | boolean;
103+
afterDownloadUpdate?: (info: CheckResult) => Promise<boolean> | boolean;
104+
onPackageExpired?: (info: CheckResult) => Promise<boolean> | boolean;
105105
overridePackageVersion?: string;
106106
}
107107

0 commit comments

Comments
 (0)