mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-11-08 00:45:47 +08:00
fix: type
This commit is contained in:
@@ -12,7 +12,7 @@ export const defaultContext = {
|
|||||||
markSuccess: noop,
|
markSuccess: noop,
|
||||||
dismissError: noop,
|
dismissError: noop,
|
||||||
downloadUpdate: asyncNoop,
|
downloadUpdate: asyncNoop,
|
||||||
downloadAndInstallApk: noop,
|
downloadAndInstallApk: asyncNoop,
|
||||||
currentHash: '',
|
currentHash: '',
|
||||||
packageVersion: '',
|
packageVersion: '',
|
||||||
};
|
};
|
||||||
@@ -24,7 +24,7 @@ export const PushyContext = createContext<{
|
|||||||
markSuccess: () => void;
|
markSuccess: () => void;
|
||||||
dismissError: () => void;
|
dismissError: () => void;
|
||||||
downloadUpdate: () => Promise<void>;
|
downloadUpdate: () => Promise<void>;
|
||||||
downloadAndInstallApk: (url: string) => void;
|
downloadAndInstallApk: (url: string) => Promise<void>;
|
||||||
currentHash: string;
|
currentHash: string;
|
||||||
packageVersion: string;
|
packageVersion: string;
|
||||||
client?: Pushy;
|
client?: Pushy;
|
||||||
|
|||||||
Reference in New Issue
Block a user