Skip to content

Commit

Permalink
Compiled the project
Browse files Browse the repository at this point in the history
Signed-off-by: Clovis Durand <[email protected]>
  • Loading branch information
Clovel committed Jul 8, 2021
1 parent de86925 commit bee0ace
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 69 deletions.
6 changes: 1 addition & 5 deletions dist/esm/codePush.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,10 @@ declare class CodePush implements CodePushCapacitorPlugin {
* - If no update is available on the server, the syncCallback will be invoked with the SyncStatus.UP_TO_DATE.
* - If an error occurs during checking for update, downloading or installing it, the syncCallback will be invoked with the SyncStatus.ERROR.
*
* @param syncCallback Optional callback to be called with the status of the sync operation.
* The callback will be called only once, and the possible statuses are defined by the SyncStatus enum.
* @param syncOptions Optional SyncOptions parameter configuring the behavior of the sync operation.
* @param downloadProgress Optional callback invoked during the download process. It is called several times with one DownloadProgress parameter.
* @param syncErrback Optional errback invoked if an error occurs. The callback will be called only once
*
*/
sync(syncOptions?: SyncOptions, downloadProgress?: SuccessCallback<DownloadProgress>): Promise<any>;
sync(syncOptions?: SyncOptions, downloadProgress?: SuccessCallback<DownloadProgress>): Promise<SyncStatus>;
/**
* Convenience method for installing updates in one method call.
* This method is provided for simplicity, and its behavior can be replicated by using window.codePush.checkForUpdate(), RemotePackage's download() and LocalPackage's install() methods.
Expand Down
65 changes: 33 additions & 32 deletions dist/esm/codePush.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esm/codePush.js.map

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion dist/esm/syncOptions.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { InstallOptions } from "./installOptions";
import { SyncStatus } from "./syncStatus";
import type { ErrorCallback, SuccessCallback } from "./callbackUtil";
import type { InstallOptions } from "./installOptions";
/**
* Defines the sync operation options.
*/
Expand All @@ -17,6 +19,14 @@ export interface SyncOptions extends InstallOptions {
* Overrides the config.xml deployment key when checking for updates.
*/
deploymentKey?: string;
/**
* A callback to call when the SyncStatus changes.
*/
onSyncStatusChanged?: SuccessCallback<SyncStatus>;
/**
* A callback to call when the SyncStatus changes.
*/
onSyncError?: ErrorCallback;
}
/**
* Defines the configuration options for the alert or confirmation dialog
Expand Down
59 changes: 30 additions & 29 deletions dist/plugin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugin.js.map

Large diffs are not rendered by default.

0 comments on commit bee0ace

Please sign in to comment.