@reactables/core 1.0.0-beta.4 → 1.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ofTypes } from './ofTypes';
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -58,6 +58,13 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
58
58
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
+
var ofTypes = function (types) { return function (dispatcher$) {
|
|
62
|
+
return dispatcher$.pipe(operators.filter(function (_a) {
|
|
63
|
+
var type = _a.type;
|
|
64
|
+
return types.includes(type);
|
|
65
|
+
}));
|
|
66
|
+
}; };
|
|
67
|
+
|
|
61
68
|
var addEffects = function (actionCreator, scopedEffects) {
|
|
62
69
|
return function (payload) { return (__assign(__assign({}, actionCreator(payload)), { scopedEffects: scopedEffects(payload) })); };
|
|
63
70
|
};
|
|
@@ -285,3 +292,4 @@ var RxBuilder = function (_a) {
|
|
|
285
292
|
};
|
|
286
293
|
|
|
287
294
|
exports.RxBuilder = RxBuilder;
|
|
295
|
+
exports.ofTypes = ofTypes;
|
package/package.json
CHANGED