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
This commit is contained in:
Konstantin Raev 2016-06-08 03:58:57 -07:00 committed by Facebook Github Bot 5
parent 57af9ecbe0
commit bfd987cbc7
1 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ class CameraRoll {
static GroupTypesOptions: Array<string>;
static AssetTypeOptions: Array<string>;
static saveImageWithTag(tag: string):Promise<*> {
static saveImageWithTag(tag: string): Promise<Object> {
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<Object> {
invariant(
typeof tag === 'string',
'CameraRoll.saveToCameraRoll must be a valid string.'