1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- import { PartialObserver } from './Observer';
- import { Observable } from './Observable';
- export declare class Notification<T> {
- kind: string;
- value: T;
- error: any;
- hasValue: boolean;
- constructor(kind: string, value?: T, error?: any);
-
- observe(observer: PartialObserver<T>): any;
-
- do(next: (value: T) => void, error?: (err: any) => void, complete?: () => void): any;
-
- accept(nextOrObserver: PartialObserver<T> | ((value: T) => void), error?: (err: any) => void, complete?: () => void): any;
-
- toObservable(): Observable<T>;
- private static completeNotification;
- private static undefinedValueNotification;
-
- static createNext<T>(value: T): Notification<T>;
-
- static createError<T>(err?: any): Notification<T>;
-
- static createComplete(): Notification<any>;
- }
|