Update react-native-code-push.d.ts (#1515)

* Update react-native-code-push.d.ts
This commit is contained in:
iamolegga
2019-02-20 11:07:08 +03:00
committed by Alexander Goncharov
parent ec149b6d76
commit a55a0be599

View File

@@ -260,7 +260,7 @@ declare namespace CodePush {
*
* @param updateState The state of the update you want to retrieve the metadata for. Defaults to UpdateState.RUNNING.
*/
function getUpdateMetadata(updateState?: UpdateState) : Promise<LocalPackage>;
function getUpdateMetadata(updateState?: UpdateState) : Promise<LocalPackage|null>;
/**
* Notifies the CodePush runtime that an installed update is considered successful.