redux-observable 2.0.0 - 用 pipeable operator 替换 action$.ofType()

redux-observable 2.0.0 - replacing action$.ofType() with pipeable operator

现在在 2.0.0 版中 action$.ofType() 已被删除,取而代之的是可管道运算符,我该如何实现以下目标

        return obs.pipe(
          takeUntil(ofType(actionCreator.cancel.TYPE)),
          map(payload => actionCreator.success(payload, meta)),
          catchError(error => of(actionCreator.failure(error, meta))),
        )

经过一番调查,我发现了以下作品

        return obs.pipe(
          takeUntil(action$.pipe(ofType(actionCreator.cancel.TYPE))),
          map(payload => actionCreator.success(payload, meta)),
          catchError(error => of(actionCreator.failure(error, meta))),
        )