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.'