/*!
 * @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
 */

interface IObserver<T>
{
	// onNext is optional because an observer may only care about onCompleted.
	onNext?:(value:T)=>void;
	onError?:(error:Error)=>void;
	onCompleted?:()=>void;
}
