mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-13 01:18:56 +08:00
[ts] Add missing null return type to checkForUpdate (#1419)
This commit is contained in:
committed by
Nickolay Toropov
parent
7d10eee1c4
commit
aa3ae8e8e9
2
typings/react-native-code-push.d.ts
vendored
2
typings/react-native-code-push.d.ts
vendored
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user