芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/rxjs/internal/Observable.d.ts
import { Operator } from './Operator'; import { Subscriber } from './Subscriber'; import { Subscription } from './Subscription'; import { TeardownLogic, OperatorFunction, PartialObserver, Subscribable } from './types'; import { iif } from './observable/iif'; import { throwError } from './observable/throwError'; /** * A representation of any set of values over any amount of time. This is the most basic building block * of RxJS. * * @class Observable
*/ export declare class Observable
implements Subscribable
{ /** Internal implementation detail, do not use directly. */ _isScalar: boolean; /** @deprecated This is an internal implementation detail, do not use. */ source: Observable
; /** @deprecated This is an internal implementation detail, do not use. */ operator: Operator
; /** * @constructor * @param {Function} subscribe the function that is called when the Observable is * initially subscribed to. This function is given a Subscriber, to which new values * can be `next`ed, or an `error` method can be called to raise an error, or * `complete` can be called to notify of a successful completion. */ constructor(subscribe?: (this: Observable
, subscriber: Subscriber
) => TeardownLogic); /** * Creates a new cold Observable by calling the Observable constructor * @static true * @owner Observable * @method create * @param {Function} subscribe? the subscriber function to be passed to the Observable constructor * @return {Observable} a new cold observable * @nocollapse * @deprecated use new Observable() instead */ static create: Function; /** * Creates a new Observable, with this Observable as the source, and the passed * operator defined as the new observable's operator. * @method lift * @param {Operator} operator the operator defining the operation to take on the observable * @return {Observable} a new observable with the Operator applied */ lift
(operator: Operator
): Observable
; subscribe(observer?: PartialObserver
): Subscription; /** @deprecated Use an observer instead of a complete callback */ subscribe(next: null | undefined, error: null | undefined, complete: () => void): Subscription; /** @deprecated Use an observer instead of an error callback */ subscribe(next: null | undefined, error: (error: any) => void, complete?: () => void): Subscription; /** @deprecated Use an observer instead of a complete callback */ subscribe(next: (value: T) => void, error: null | undefined, complete: () => void): Subscription; subscribe(next?: (value: T) => void, error?: (error: any) => void, complete?: () => void): Subscription; /** @deprecated This is an internal implementation detail, do not use. */ _trySubscribe(sink: Subscriber
): TeardownLogic; /** * @method forEach * @param {Function} next a handler for each value emitted by the observable * @param {PromiseConstructor} [promiseCtor] a constructor function used to instantiate the Promise * @return {Promise} a promise that either resolves on observable completion or * rejects with the handled error */ forEach(next: (value: T) => void, promiseCtor?: PromiseConstructorLike): Promise
; /** @internal This is an internal implementation detail, do not use. */ _subscribe(subscriber: Subscriber
): TeardownLogic; /** * @nocollapse * @deprecated In favor of iif creation function: import { iif } from 'rxjs'; */ static if: typeof iif; /** * @nocollapse * @deprecated In favor of throwError creation function: import { throwError } from 'rxjs'; */ static throw: typeof throwError; pipe(): Observable
; pipe
(op1: OperatorFunction
): Observable
; pipe
(op1: OperatorFunction
, op2: OperatorFunction
): Observable
; pipe
(op1: OperatorFunction
, op2: OperatorFunction
, op3: OperatorFunction
): Observable
; pipe
(op1: OperatorFunction
, op2: OperatorFunction
, op3: OperatorFunction
, op4: OperatorFunction
): Observable
; pipe
(op1: OperatorFunction
, op2: OperatorFunction
, op3: OperatorFunction
, op4: OperatorFunction
, op5: OperatorFunction
): Observable
; pipe
(op1: OperatorFunction
, op2: OperatorFunction
, op3: OperatorFunction
, op4: OperatorFunction
, op5: OperatorFunction
, op6: OperatorFunction
): Observable
; pipe
(op1: OperatorFunction
, op2: OperatorFunction
, op3: OperatorFunction
, op4: OperatorFunction
, op5: OperatorFunction
, op6: OperatorFunction
, op7: OperatorFunction
): Observable
; pipe
(op1: OperatorFunction
, op2: OperatorFunction
, op3: OperatorFunction
, op4: OperatorFunction
, op5: OperatorFunction
, op6: OperatorFunction
, op7: OperatorFunction
, op8: OperatorFunction
): Observable
; pipe
(op1: OperatorFunction
, op2: OperatorFunction
, op3: OperatorFunction
, op4: OperatorFunction
, op5: OperatorFunction
, op6: OperatorFunction
, op7: OperatorFunction
, op8: OperatorFunction
, op9: OperatorFunction
): Observable
; pipe
(op1: OperatorFunction
, op2: OperatorFunction
, op3: OperatorFunction
, op4: OperatorFunction
, op5: OperatorFunction
, op6: OperatorFunction
, op7: OperatorFunction
, op8: OperatorFunction
, op9: OperatorFunction
, ...operations: OperatorFunction
[]): Observable<{}>; toPromise
(this: Observable
): Promise
; toPromise
(this: Observable
, PromiseCtor: typeof Promise): Promise
; toPromise
(this: Observable
, PromiseCtor: PromiseConstructorLike): Promise
; }