UNPKG

@ng-doc/builder

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

15 lines 629 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.onRemoveFromStore = onRemoveFromStore; const rxjs_1 = require("rxjs"); const operators_1 = require("rxjs/operators"); /** * * @param store * @param store.changes * @param store.size */ function onRemoveFromStore(store) { return store.changes().pipe((0, operators_1.map)(() => store.size), (0, rxjs_1.pairwise)(), (0, operators_1.map)(([prev, next]) => prev > next), (0, operators_1.filter)(Boolean), (0, operators_1.map)(() => void 0), (0, rxjs_1.subscribeOn)(rxjs_1.asyncScheduler)); } //# sourceMappingURL=on-remove-from-store.js.map