"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var operators_1 = require("rxjs/operators");
function ofAction(actionCreator) {
    return function (actions$) {
        return actions$.pipe(operators_1.filter(actionCreator.match));
    };
}
exports.ofAction = ofAction;
function ofActionWithPayload(actionCreator) {
    return function (actions$) {
        return actions$.pipe(operators_1.filter(actionCreator.match), operators_1.filter(function (action) { return action.payload !== null; }));
    };
}
exports.ofActionWithPayload = ofActionWithPayload;
//# sourceMappingURL=typescript-fsa-redux-observable.js.map