1 |
- {"version":3,"file":"bundle.esm.js","sources":["../src/zenObservable.ts"],"sourcesContent":["/* tslint:disable */\n\nimport zenObservable from 'zen-observable';\n\nnamespace Observable {\n\n}\n\nimport { ZenObservable } from './types';\n\nexport { ZenObservable };\n\nexport type Observer<T> = ZenObservable.Observer<T>;\nexport type Subscriber<T> = ZenObservable.Subscriber<T>;\nexport type ObservableLike<T> = ZenObservable.ObservableLike<T>;\n\nexport const Observable: {\n new <T>(subscriber: Subscriber<T>): Observable<T>;\n from<R>(\n observable: Observable<R> | ZenObservable.ObservableLike<R> | ArrayLike<R>,\n ): Observable<R>;\n of<R>(...args: Array<R>): Observable<R>;\n} = <any>zenObservable;\n\nexport interface Observable<T> {\n subscribe(\n observerOrNext: ((value: T) => void) | ZenObservable.Observer<T>,\n error?: (error: any) => void,\n complete?: () => void,\n ): ZenObservable.Subscription;\n\n forEach(fn: (value: T) => void): Promise<void>;\n\n map<R>(fn: (value: T) => R): Observable<R>;\n\n filter(fn: (value: T) => boolean): Observable<T>;\n\n reduce<R = T>(\n fn: (previousValue: R | T, currentValue: T) => R | T,\n initialValue?: R | T,\n ): Observable<R | T>;\n\n flatMap<R>(fn: (value: T) => ZenObservable.ObservableLike<R>): Observable<R>;\n\n from<R>(\n observable: Observable<R> | ZenObservable.ObservableLike<R> | ArrayLike<R>,\n ): Observable<R>;\n of<R>(...args: Array<R>): Observable<R>;\n}\n"],"names":[],"mappings":";;IAgBa,UAAU,GAMd;;;;;"}
|