Bones/node_modules/rxjs/Notification.d.ts
SOUTHERNCO\x2mjbyrn 7efe7605b8 Template Upload
2017-05-17 13:45:25 -04:00

19 lines
808 B
TypeScript

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>;
}