mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-07 17:25:13 +08:00
改进类型声明
This commit is contained in:
4
index.d.ts
vendored
4
index.d.ts
vendored
@@ -24,7 +24,9 @@ export interface UpdateAvailableResult {
|
||||
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>;
|
||||
|
||||
|
Reference in New Issue
Block a user