Bones/node_modules/rxjs/Notification.d.ts

19 lines
808 B
TypeScript
Raw Normal View History

2017-05-17 13:45:25 -04:00
import { PartialObserver } from './Observer';
import { Observable } from './Observable';
export declare class Notification<T> {
kind: string;
value: T;
exception: any;
hasValue: boolean;
constructor(kind: string, value?: T, exception?: 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>;
}