(count$: Observable<number>, state$: Observable<CountState>)
| 60 | |
| 61 | @Effect() |
| 62 | minus(count$: Observable<number>, state$: Observable<CountState>): Observable<EffectAction> { |
| 63 | return count$.pipe( |
| 64 | withLatestFrom(state$), |
| 65 | mergeMap(([subCount, state]) => |
| 66 | of( |
| 67 | this.getActions().setCount(state.count - subCount), |
| 68 | this.tips.getActions().showTipsWithEffectAction(`minus ${subCount}`), |
| 69 | ), |
| 70 | ), |
| 71 | ) |
| 72 | } |
| 73 | |
| 74 | @Effect() |
| 75 | error(payload$: Observable<void>) { |
no test coverage detected