@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';
@@ -0,0 +1,3 @@
1
+ import { OperatorFunction } from 'rxjs';
2
+ import { Action } from '../Models/Action';
3
+ export declare const ofTypes: (types: string[]) => OperatorFunction<Action<unknown>, Action<unknown>>;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './Models';
2
2
  export * from './Helpers';
3
+ export * from './Operators';
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
@@ -16,5 +16,5 @@
16
16
  "peerDependencies": {
17
17
  "rxjs": "^6.0.0 || ^7.0.0"
18
18
  },
19
- "version": "1.0.0-beta.4"
19
+ "version": "1.0.0-beta.5"
20
20
  }
@@ -1,3 +0,0 @@
1
- import { OperatorFunction } from 'rxjs';
2
- import { Action } from '../Models/Action';
3
- export declare const ofType: (type: string) => OperatorFunction<Action<unknown>, Action<unknown>>;