Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 448b129

Browse files
maxschmelingYuri Kulikov
authored andcommitted
Fixes typo in TypeScript typings (#1491)
* Fixes typo in TypeScript typings: DowloadProgressCallback -> DownloadProgressCallback.
1 parent 7964db1 commit 448b129

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type DowloadProgressCallback = (progress: DownloadProgress) => void;
1+
export type DownloadProgressCallback = (progress: DownloadProgress) => void;
22
export type SyncStatusChangedCallback = (status: CodePush.SyncStatus) => void;
33
export type HandleBinaryVersionMismatchCallback = (update: RemotePackage) => void;
44

@@ -92,7 +92,7 @@ export interface RemotePackage extends Package {
9292
*
9393
* @param downloadProgressCallback An optional callback that allows tracking the progress of the update while it is being downloaded.
9494
*/
95-
download(downloadProgressCallback?: DowloadProgressCallback): Promise<LocalPackage>;
95+
download(downloadProgressCallback?: DownloadProgressCallback): Promise<LocalPackage>;
9696

9797
/**
9898
* The URL at which the package is available for download.
@@ -300,7 +300,7 @@ declare namespace CodePush {
300300
* @param downloadProgressCallback An optional callback that allows tracking the progress of an update while it is being downloaded.
301301
* @param handleBinaryVersionMismatchCallback An optional callback for handling target binary version mismatch
302302
*/
303-
function sync(options?: SyncOptions, syncStatusChangedCallback?: SyncStatusChangedCallback, downloadProgressCallback?: DowloadProgressCallback, handleBinaryVersionMismatchCallback?: HandleBinaryVersionMismatchCallback): Promise<SyncStatus>;
303+
function sync(options?: SyncOptions, syncStatusChangedCallback?: SyncStatusChangedCallback, downloadProgressCallback?: DownloadProgressCallback, handleBinaryVersionMismatchCallback?: HandleBinaryVersionMismatchCallback): Promise<SyncStatus>;
304304

305305
/**
306306
* Indicates when you would like an installed update to actually be applied.

0 commit comments

Comments
 (0)