Skip to content

Commit 32a1653

Browse files
typings: fix order in SyncStatus enum
1 parent f5e6de5 commit 32a1653

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

typings/react-native-code-push.d.ts

+27-27
Original file line numberDiff line numberDiff line change
@@ -323,53 +323,53 @@ declare namespace CodePush {
323323
*/
324324
enum SyncStatus {
325325
/**
326-
* The CodePush server is being queried for an update.
326+
* The app is up-to-date with the CodePush server.
327327
*/
328-
CHECKING_FOR_UPDATE,
329-
328+
UP_TO_DATE,
329+
330330
/**
331-
* An update is available, and a confirmation dialog was shown
332-
* to the end user. (This is only applicable when the updateDialog is used)
331+
* An available update has been installed and will be run either immediately after the
332+
* syncStatusChangedCallback function returns or the next time the app resumes/restarts,
333+
* depending on the InstallMode specified in SyncOptions
333334
*/
334-
AWAITING_USER_ACTION,
335-
335+
UPDATE_INSTALLED,
336+
336337
/**
337-
* An available update is being downloaded from the CodePush server.
338+
* The app had an optional update which the end user chose to ignore.
339+
* (This is only applicable when the updateDialog is used)
338340
*/
339-
DOWNLOADING_PACKAGE,
340-
341+
UPDATE_IGNORED,
342+
341343
/**
342-
* An available update was downloaded and is about to be installed.
344+
* The sync operation encountered an unknown error.
343345
*/
344-
INSTALLING_UPDATE,
345-
346+
UNKNOWN_ERROR,
347+
346348
/**
347-
* The app is up-to-date with the CodePush server.
349+
* There is an ongoing sync operation running which prevents the current call from being executed.
348350
*/
349-
UP_TO_DATE,
350-
351+
SYNC_IN_PROGRESS,
352+
351353
/**
352-
* The app had an optional update which the end user chose to ignore.
353-
* (This is only applicable when the updateDialog is used)
354+
* The CodePush server is being queried for an update.
354355
*/
355-
UPDATE_IGNORED,
356+
CHECKING_FOR_UPDATE,
356357

357358
/**
358-
* An available update has been installed and will be run either immediately after the
359-
* syncStatusChangedCallback function returns or the next time the app resumes/restarts,
360-
* depending on the InstallMode specified in SyncOptions
359+
* An update is available, and a confirmation dialog was shown
360+
* to the end user. (This is only applicable when the updateDialog is used)
361361
*/
362-
UPDATE_INSTALLED,
362+
AWAITING_USER_ACTION,
363363

364364
/**
365-
* There is an ongoing sync operation running which prevents the current call from being executed.
365+
* An available update is being downloaded from the CodePush server.
366366
*/
367-
SYNC_IN_PROGRESS,
367+
DOWNLOADING_PACKAGE,
368368

369369
/**
370-
* The sync operation encountered an unknown error.
370+
* An available update was downloaded and is about to be installed.
371371
*/
372-
UNKNOWN_ERROR
372+
INSTALLING_UPDATE
373373
}
374374

375375
/**

0 commit comments

Comments
 (0)