UNPKG

rx-store-core

Version:

A Rxjs and Immutable based Type-safe state management tool

16 lines (15 loc) 539 B
"use strict"; 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;