[ts] Add missing null return type to checkForUpdate (#1419)

This commit is contained in:
Tyler Jones
2018-09-28 01:18:28 -07:00
committed by Nickolay Toropov
parent 7d10eee1c4
commit aa3ae8e8e9

View File

@@ -230,7 +230,7 @@ declare namespace CodePush {
*
* @param handleBinaryVersionMismatchCallback An optional callback for handling target binary version mismatch
*/
function checkForUpdate(deploymentKey?: string, handleBinaryVersionMismatchCallback?: HandleBinaryVersionMismatchCallback): Promise<RemotePackage>;
function checkForUpdate(deploymentKey?: string, handleBinaryVersionMismatchCallback?: HandleBinaryVersionMismatchCallback): Promise<RemotePackage | null>;
/**
* Retrieves the metadata for an installed update (e.g. description, mandatory).