typescript-dotnet-amd
Version:
A JavaScript-Friendly .NET Based TypeScript Library.
21 lines (20 loc) • 809 B
TypeScript
/*!
* @author electricessence / https://github.com/electricessence/
* Based upon .NET source.
* Licensing: MIT https://github.com/electricessence/TypeScript.NET/blob/master/LICENSE.md
* Source: http://referencesource.microsoft.com/#mscorlib/system/IObserver.cs
*/
import { IDisposableAware } from "../Disposable/IDisposableAware";
import { ISubscribable } from "./ISubscribable";
/**
* A registration that an IObservable returns that can be disposed in order to cancel sending data to the observer.
*/
export declare class Subscription<T> implements IDisposableAware {
private _subscribable;
private _subscriber;
constructor(_subscribable: ISubscribable<T>, _subscriber: T);
readonly subscriber: T;
readonly wasDisposed: boolean;
dispose(): void;
}
export default Subscription;