UNPKG

typescript-dotnet-amd

Version:

A JavaScript-Friendly .NET Based TypeScript Library.

20 lines (19 loc) 938 B
/*! * @author electricessence / https://github.com/electricessence/ * Based upon .NET source. * Licensing: MIT https://github.com/electricessence/TypeScript.NET/blob/master/LICENSE.md * C# Source: http://referencesource.microsoft.com/#mscorlib/system/IObserver.cs */ import { SubscribableBase } from "./SubscribableBase"; import { IObservable } from "./IObservable"; import { IObserver } from "./IObserver"; import { IDisposable } from "../Disposable/IDisposable"; import { Action, Closure } from "../FunctionTypes"; export declare abstract class ObservableBase<T> extends SubscribableBase<IObserver<T>> implements IObservable<T> { protected _onNext(value: T): void; protected _onError(error: any): void; protected _onCompleted(): void; subscribe(subscriber: IObserver<T>): IDisposable; subscribe(subscriber: Action<T>, onError?: Action<any>, onCompleted?: Closure): IDisposable; } export default ObservableBase;