12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- import { PartialObserver } from './types';
- import { Observable } from './Observable';
- export declare enum NotificationKind {
- NEXT = "N",
- ERROR = "E",
- COMPLETE = "C"
- }
- export declare class Notification<T> {
- kind: 'N' | 'E' | 'C';
- value?: T;
- error?: any;
- hasValue: boolean;
- constructor(kind: 'N' | 'E' | 'C', 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>;
- }
|