mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-04 00:13:06 +08:00
refactor(photo-library): fixed circleci failing in 2.7.0 (#1132)
* feat(photo-library): added cordova-plugin-photo-library * CordovaFiniteObservable moved to photo-library. Overloads are marked as private. * fixed typescript error in 2.7.0
This commit is contained in:
parent
384dfc263d
commit
f599b0418d
@ -582,7 +582,7 @@ export function CordovaFiniteObservable(opts: CordovaFiniteObservableOptions = {
|
|||||||
return {
|
return {
|
||||||
value: function(...args: any[]) {
|
value: function(...args: any[]) {
|
||||||
let wrappedObservable: Observable<any> = wrap(this, methodName, opts).apply(this, args);
|
let wrappedObservable: Observable<any> = wrap(this, methodName, opts).apply(this, args);
|
||||||
return new Observable((observer) => {
|
return new Observable<any>((observer) => {
|
||||||
let wrappedSubscription = wrappedObservable.subscribe({
|
let wrappedSubscription = wrappedObservable.subscribe({
|
||||||
next: (x) => {
|
next: (x) => {
|
||||||
observer.next(opts.resultTransform ? opts.resultTransform(x) : x);
|
observer.next(opts.resultTransform ? opts.resultTransform(x) : x);
|
||||||
|
Loading…
Reference in New Issue
Block a user