From cee5bf10c2d8a47288a7ca01712c5da3ead4c77f Mon Sep 17 00:00:00 2001 From: Jonathan Carter Date: Wed, 17 Feb 2016 15:04:55 -0800 Subject: [PATCH] Adding missing @params --- react-native-code-push.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/react-native-code-push.d.ts b/react-native-code-push.d.ts index 76be21b..5131f1f 100644 --- a/react-native-code-push.d.ts +++ b/react-native-code-push.d.ts @@ -23,6 +23,8 @@ interface DownloadProgress { interface LocalPackage extends Package { /** * Installs the update by saving it to the location on disk where the runtime expects to find the latest version of the app. + * + * @param installMode Indicates when you would like the update changes to take affect for the end-user. */ install(installMode: CodePush.InstallMode): ReactNativePromise; } @@ -84,8 +86,10 @@ interface Package { interface RemotePackage extends Package { /** * Downloads the available update from the CodePush service. + * + * @param downloadProgressCallback An optional callback that allows tracking the progress of the update while it is being downloaded. */ - download(downloadProgressCallback?: (progress: DownloadProgress) => void): ReactNativePromise; + download(downloadProgressCallback?: DowloadProgressCallback): ReactNativePromise; /** * The URL at which the package is available for download.