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 коммит произвёл Facebook Github Bot 5
Родитель 525d35ba67
Коммит 91e504b0c8
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -116,7 +116,7 @@ class CameraRoll {
static GroupTypesOptions: Array<string>; static GroupTypesOptions: Array<string>;
static AssetTypeOptions: 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'); console.warn('CameraRoll.saveImageWithTag is deprecated. Use CameraRoll.saveToCameraRoll instead');
return this.saveToCameraRoll(tag, 'photo'); return this.saveToCameraRoll(tag, 'photo');
} }
@ -135,7 +135,7 @@ class CameraRoll {
* *
* Returns a Promise which will resolve with the new URI. * 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( invariant(
typeof tag === 'string', typeof tag === 'string',
'CameraRoll.saveToCameraRoll must be a valid string.' 'CameraRoll.saveToCameraRoll must be a valid string.'