1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-12-21 13:13:58 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

checkUpdate now returns info

This commit is contained in:
sunnylqm
2025-03-05 20:17:06 +08:00
parent 90d1539038
commit 4944b05378
3 changed files with 5 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ export const defaultContext = {
};
export const UpdateContext = createContext<{
checkUpdate: () => Promise<void>;
checkUpdate: () => Promise<void | CheckResult>;
switchVersion: () => Promise<void>;
switchVersionLater: () => Promise<void>;
markSuccess: () => void;