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:
parent
57af9ecbe0
commit
bfd987cbc7
|
@ -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.'
|
||||
|
|
Loading…
Reference in New Issue