mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-04-26 23:05:08 +08:00
Fixes typo in TypeScript typings (#1491)
* Fixes typo in TypeScript typings: DowloadProgressCallback -> DownloadProgressCallback.
This commit is contained in:
committed by
Yuri Kulikov
parent
7964db1103
commit
448b12926b
6
typings/react-native-code-push.d.ts
vendored
6
typings/react-native-code-push.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
export type DowloadProgressCallback = (progress: DownloadProgress) => void;
|
||||
export type DownloadProgressCallback = (progress: DownloadProgress) => void;
|
||||
export type SyncStatusChangedCallback = (status: CodePush.SyncStatus) => void;
|
||||
export type HandleBinaryVersionMismatchCallback = (update: RemotePackage) => void;
|
||||
|
||||
@@ -92,7 +92,7 @@ export interface RemotePackage extends Package {
|
||||
*
|
||||
* @param downloadProgressCallback An optional callback that allows tracking the progress of the update while it is being downloaded.
|
||||
*/
|
||||
download(downloadProgressCallback?: DowloadProgressCallback): Promise<LocalPackage>;
|
||||
download(downloadProgressCallback?: DownloadProgressCallback): Promise<LocalPackage>;
|
||||
|
||||
/**
|
||||
* The URL at which the package is available for download.
|
||||
@@ -300,7 +300,7 @@ declare namespace CodePush {
|
||||
* @param downloadProgressCallback An optional callback that allows tracking the progress of an update while it is being downloaded.
|
||||
* @param handleBinaryVersionMismatchCallback An optional callback for handling target binary version mismatch
|
||||
*/
|
||||
function sync(options?: SyncOptions, syncStatusChangedCallback?: SyncStatusChangedCallback, downloadProgressCallback?: DowloadProgressCallback, handleBinaryVersionMismatchCallback?: HandleBinaryVersionMismatchCallback): Promise<SyncStatus>;
|
||||
function sync(options?: SyncOptions, syncStatusChangedCallback?: SyncStatusChangedCallback, downloadProgressCallback?: DownloadProgressCallback, handleBinaryVersionMismatchCallback?: HandleBinaryVersionMismatchCallback): Promise<SyncStatus>;
|
||||
|
||||
/**
|
||||
* Indicates when you would like an installed update to actually be applied.
|
||||
|
||||
Reference in New Issue
Block a user