UNPKG

531 BJavaScriptView Raw
1var __extends = (this && this.__extends) || function (d, b) {
2 for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
3 function __() { this.constructor = d; }
4 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
5};
6import { ReplaySubject } from 'rxjs/ReplaySubject';
7export var SyncSubject = (function (_super) {
8 __extends(SyncSubject, _super);
9 function SyncSubject(value) {
10 _super.call(this, 1);
11 this.next(value);
12 }
13 return SyncSubject;
14}(ReplaySubject));