Skip to content

Commit 100f0c8

Browse files
authored
Merge pull request #62 from Soomgo-Mobile/v10-fix-check-for-update-type
fix!: checkForUpdate function type doesn’t match runtime behavior
2 parents c0c41f4 + 90a7e9b commit 100f0c8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,9 @@ declare namespace CodePush {
342342
/**
343343
* Asks the CodePush service whether the configured app deployment has an update available.
344344
*
345-
* @param deploymentKey The deployment key to use to query the CodePush server for an update.
346-
*
347345
* @param handleBinaryVersionMismatchCallback An optional callback for handling target binary version mismatch
348346
*/
349-
function checkForUpdate(deploymentKey?: string, handleBinaryVersionMismatchCallback?: HandleBinaryVersionMismatchCallback): Promise<RemotePackage | null>;
347+
function checkForUpdate(handleBinaryVersionMismatchCallback?: HandleBinaryVersionMismatchCallback): Promise<RemotePackage | null>;
350348

351349
/**
352350
* Retrieves the metadata for an installed update (e.g. description, mandatory).

0 commit comments

Comments
 (0)