From bfd987cbc766ee09f46938398d30c02bf1c4b45b Mon Sep 17 00:00:00 2001 From: Konstantin Raev Date: Wed, 8 Jun 2016 03:58:57 -0700 Subject: [PATCH] Fixed website generation for CameraRoll.js Summary: Fixes whate was broken in #7988 Website generation does not understand Promise<*>. Closes https://github.com/facebook/react-native/pull/8002 Differential Revision: D3404468 Pulled By: avaly fbshipit-source-id: 9070ce038431795b0195f9eb0366aab5f3fb4cb0 --- CameraRoll.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CameraRoll.js b/CameraRoll.js index 4b7f23f3e..140adc25f 100644 --- a/CameraRoll.js +++ b/CameraRoll.js @@ -116,7 +116,7 @@ class CameraRoll { static GroupTypesOptions: Array; static AssetTypeOptions: Array; - static saveImageWithTag(tag: string):Promise<*> { + static saveImageWithTag(tag: string): Promise { console.warn('CameraRoll.saveImageWithTag is deprecated. Use CameraRoll.saveToCameraRoll instead'); return this.saveToCameraRoll(tag, 'photo'); } @@ -135,7 +135,7 @@ class CameraRoll { * * Returns a Promise which will resolve with the new URI. */ - static saveToCameraRoll(tag: string, type?: 'photo' | 'video'): Promise<*> { + static saveToCameraRoll(tag: string, type?: 'photo' | 'video'): Promise { invariant( typeof tag === 'string', 'CameraRoll.saveToCameraRoll must be a valid string.'