From d184beabaf6cae79cc834de414a9a00034de443b Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Sun, 25 Feb 2024 00:04:55 +0800 Subject: [PATCH] fix: type --- src/context.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context.ts b/src/context.ts index a43cd7f..a186fca 100644 --- a/src/context.ts +++ b/src/context.ts @@ -12,7 +12,7 @@ export const defaultContext = { markSuccess: noop, dismissError: noop, downloadUpdate: asyncNoop, - downloadAndInstallApk: noop, + downloadAndInstallApk: asyncNoop, currentHash: '', packageVersion: '', }; @@ -24,7 +24,7 @@ export const PushyContext = createContext<{ markSuccess: () => void; dismissError: () => void; downloadUpdate: () => Promise; - downloadAndInstallApk: (url: string) => void; + downloadAndInstallApk: (url: string) => Promise; currentHash: string; packageVersion: string; client?: Pushy;