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

改进类型声明

This commit is contained in:
sunnylqm
2019-07-06 22:26:50 +08:00
parent b5e273deef
commit 1c2507e631

4
index.d.ts vendored
View File

@@ -24,7 +24,9 @@ export interface UpdateAvailableResult {
diffUrl: string; diffUrl: string;
} }
export function checkUpdate(appkey: string): Promise<ExpiredResult | UpTodateResult | UpdateAvailableResult>; export type CheckResult = Partial<ExpiredResult & UpTodateResult & UpdateAvailableResult>;
export function checkUpdate(appkey: string): Promise<CheckResult>;
export function downloadUpdate(options: UpdateAvailableResult): Promise<undefined | string>; export function downloadUpdate(options: UpdateAvailableResult): Promise<undefined | string>;