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:
viskin 2017-03-02 12:34:53 +02:00 committed by Ibby Hadeed
parent 384dfc263d
commit f599b0418d

View File

@ -582,7 +582,7 @@ export function CordovaFiniteObservable(opts: CordovaFiniteObservableOptions = {
return {
value: function(...args: any[]) {
let wrappedObservable: Observable<any> = wrap(this, methodName, opts).apply(this, args);
return new Observable((observer) => {
return new Observable<any>((observer) => {
let wrappedSubscription = wrappedObservable.subscribe({
next: (x) => {
observer.next(opts.resultTransform ? opts.resultTransform(x) : x);