fix(social-sharing): fix issues caused by omitting optional params

closes #1805
This commit is contained in:
Ibby Hadeed 2017-07-15 14:29:51 -04:00
parent 1b55513bc4
commit 25c1cf4058
No known key found for this signature in database
GPG Key ID: 22EFE47A3DDBDB5C

View File

@ -49,7 +49,10 @@ export class SocialSharing extends IonicNativePlugin {
* @param url {string} A URL to share
* @returns {Promise<any>}
*/
@Cordova()
@Cordova({
successIndex: 4,
errorIndex: 5
})
share(message?: string, subject?: string, file?: string | string[], url?: string): Promise<any> { return; }
/**