fix(alipay): adjust pay function properties (#3197)

* fix bug 'Success is not a function #158'
https://github.com/terikon/cordova-plugin-photo-library/issues/158

* alipay: add optional success, error callback
for pay()  method
This commit is contained in:
jing-zhou
2019-10-18 13:13:02 +08:00
committed by Daniel Sogl
parent 7033a1822e
commit fb5d47bff2
2 changed files with 3 additions and 3 deletions
@@ -125,7 +125,7 @@ export class PhotoLibrary extends IonicNativePlugin {
@Cordova({
observable: true
})
getLibrary(options?: GetLibraryOptions): Observable<LibraryItem[]> {
getLibrary(success?: (res?: any) => void, error?: (err?: any) => void, options?: GetLibraryOptions): Observable<LibraryItem[]> {
return;
}