rx-store-core
Version:
A Rxjs and Immutable based Type-safe state management tool
16 lines (15 loc) • 539 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbstractSubjectWithValue = void 0;
var AbstractSubjectWithValue = /** @class */ (function () {
function AbstractSubjectWithValue(value, subject) {
this.value = value;
this.source = subject;
}
AbstractSubjectWithValue.prototype.next = function (val) {
this.value = val;
this.source.next(this.value);
};
return AbstractSubjectWithValue;
}());
exports.AbstractSubjectWithValue = AbstractSubjectWithValue;