charlike
Version:
Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options
23 lines (19 loc) • 764 B
text/typescript
/// <reference path="../../observable.ts"/>
module Rx {
export interface Observable<T> {
/**
* Returns an observable sequence that shares a single subscription to the underlying sequence. This observable sequence
* can be resubscribed to, even if all prior subscriptions have ended. (unlike `.publish().refCount()`)
* @returns {Observable} An observable sequence that contains the elements of a sequence produced by multicasting the source.
*/
singleInstance(): Observable<T>;
}
}
(function() {
var o: Rx.Observable<number>;
var oc: Rx.ConnectableObservable<number>;
var is: Rx.ISubject<number>;
var s: Rx.Subject<number>;
var a: Rx.Observable<string>;
o = o.singleInstance();
});