mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 13:23:12 +08:00 
			
		
		
		
	移除不必要的index.js
This commit is contained in:
		
							
								
								
									
										37
									
								
								lib/index.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								lib/index.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| export const downloadRootDir: string; | ||||
| export const packageVersion: string; | ||||
| export const currentVersion: string; | ||||
| export const isFirstTime: boolean; | ||||
| export const isRolledBack: boolean; | ||||
|  | ||||
| export interface ExpiredResult { | ||||
|   expired: true; | ||||
|   downloadUrl: string; | ||||
| } | ||||
|  | ||||
| export interface UpTodateResult { | ||||
|   upToDate: true; | ||||
| } | ||||
|  | ||||
| export interface UpdateAvailableResult { | ||||
|   update: true; | ||||
|   name: string; // version name | ||||
|   hash: string; | ||||
|   description: string; | ||||
|   metaInfo: string; | ||||
|   updateUrl: string; | ||||
|   pdiffUrl: string; | ||||
|   diffUrl: string; | ||||
| } | ||||
|  | ||||
| export type CheckResult = Partial<ExpiredResult & UpTodateResult & UpdateAvailableResult>; | ||||
|  | ||||
| export function checkUpdate(appkey: string): Promise<CheckResult>; | ||||
|  | ||||
| export function downloadUpdate(options: UpdateAvailableResult): Promise<undefined | string>; | ||||
|  | ||||
| export function switchVersion(hash: string): void; | ||||
|  | ||||
| export function switchVersionLater(hash: string): void; | ||||
|  | ||||
| export function markSuccess(): void; | ||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm