mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 21:33:12 +08:00 
			
		
		
		
	v10.0.0-beta.2
This commit is contained in:
		
							
								
								
									
										38
									
								
								src/type.ts
									
									
									
									
									
								
							
							
						
						
									
										38
									
								
								src/type.ts
									
									
									
									
									
								
							| @@ -1,31 +1,19 @@ | ||||
| export interface ExpiredResult { | ||||
|   expired: true; | ||||
|   downloadUrl: string; | ||||
| } | ||||
|  | ||||
| export interface UpTodateResult { | ||||
|   upToDate: true; | ||||
|   paused?: 'app' | 'package'; | ||||
| } | ||||
|  | ||||
| export interface UpdateAvailableResult { | ||||
|   upToDate: false; | ||||
|   update: true; | ||||
|   name: string; // version name | ||||
|   hash: string; | ||||
|   description: string; | ||||
|   metaInfo: string; | ||||
|   pdiffUrl: string; | ||||
| export interface CheckResult { | ||||
|   upToDate?: true; | ||||
|   expired?: true; | ||||
|   downloadUrl?: string; | ||||
|   update?: true; | ||||
|   name?: string; // version name | ||||
|   hash?: string; | ||||
|   description?: string; | ||||
|   metaInfo?: string; | ||||
|   pdiffUrl?: string; | ||||
|   diffUrl?: string; | ||||
|   updateUrl?: string; | ||||
|   paused?: 'app' | 'package'; | ||||
|   message?: string; | ||||
| } | ||||
|  | ||||
| export type CheckResult = | ||||
|   | ExpiredResult | ||||
|   | UpTodateResult | ||||
|   | UpdateAvailableResult | ||||
|   | {}; | ||||
|  | ||||
| export interface ProgressData { | ||||
|   hash: string; | ||||
|   received: number; | ||||
| @@ -59,6 +47,7 @@ export interface EventData { | ||||
|   newVersion?: string; | ||||
|   [key: string]: any; | ||||
| } | ||||
|  | ||||
| export type UpdateEventsLogger = ({ | ||||
|   type, | ||||
|   data, | ||||
| @@ -72,6 +61,7 @@ export interface PushyServerConfig { | ||||
|   backups?: string[]; | ||||
|   queryUrl?: string; | ||||
| } | ||||
|  | ||||
| export interface PushyOptions { | ||||
|   appKey: string; | ||||
|   server?: PushyServerConfig; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm