mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-31 01:44:54 +08:00
CR feedback
This commit is contained in:
15
typings/react-native-code-push.d.ts
vendored
15
typings/react-native-code-push.d.ts
vendored
@@ -23,9 +23,9 @@ export type SyncStatusChangedCallback = (status: CodePush.SyncStatus) => void;
|
||||
export interface CodePushOptions extends SyncOptions {
|
||||
/**
|
||||
* Specifies when you would like to synchronize updates with the CodePush server.
|
||||
* Defaults to codePush.SyncMode.ON_APP_START.
|
||||
* Defaults to codePush.CheckFrequency.ON_APP_START.
|
||||
*/
|
||||
syncMode: CodePush.SyncMode;
|
||||
checkFrequency: CodePush.CheckFrequency;
|
||||
}
|
||||
|
||||
export interface DownloadProgress {
|
||||
@@ -400,9 +400,9 @@ declare namespace CodePush {
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates when you would like to synchronize updates with the CodePush server.
|
||||
* Indicates when you would like to check for (and install) updates from the CodePush server.
|
||||
*/
|
||||
enum SyncMode {
|
||||
enum CheckFrequency {
|
||||
/**
|
||||
* When the app is fully initialized (or more specifically, when the root component is mounted).
|
||||
*/
|
||||
@@ -411,7 +411,12 @@ declare namespace CodePush {
|
||||
/**
|
||||
* When the app re-enters the foreground.
|
||||
*/
|
||||
ON_APP_RESUME
|
||||
ON_APP_RESUME,
|
||||
|
||||
/**
|
||||
* Don't automatically check for updates, but only do it when codePush.sync() is manully called inside app code.
|
||||
*/
|
||||
MANUAL
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user