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

Commit aa3ae8e

Browse files
squirlyNickToropov
authored andcommitted
[ts] Add missing null return type to checkForUpdate (#1419)
1 parent 7d10eee commit aa3ae8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ declare namespace CodePush {
230230
*
231231
* @param handleBinaryVersionMismatchCallback An optional callback for handling target binary version mismatch
232232
*/
233-
function checkForUpdate(deploymentKey?: string, handleBinaryVersionMismatchCallback?: HandleBinaryVersionMismatchCallback): Promise<RemotePackage>;
233+
function checkForUpdate(deploymentKey?: string, handleBinaryVersionMismatchCallback?: HandleBinaryVersionMismatchCallback): Promise<RemotePackage | null>;
234234

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

0 commit comments

Comments
 (0)