ts-action-operators
Version:
TypeScript action operators for NgRx and redux-observable
16 lines (15 loc) • 494 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ofType = void 0;
var operators_1 = require("rxjs/operators");
function ofType() {
var creators = [];
for (var _i = 0; _i < arguments.length; _i++) {
creators[_i] = arguments[_i];
}
return operators_1.filter(function (_a) {
var type = _a.type;
return creators.some(function (creator) { return creator.type === type; });
});
}
exports.ofType = ofType;