Skip to content

Commit 2b1a076

Browse files
brandonrobertsMikeRyanDev
authored andcommitted
fix(Effects): Export EffectsNotification interface (#231)
1 parent 065d33e commit 2b1a076

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/effects/api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ import 'rxjs/add/operator/takeUntil';
107107
import { Injectable } from '@angular/core';
108108
import { Observable } from 'rxjs/Observable';
109109
import { Action } from '@ngrx/store';
110-
import { Actions, Effect, OnRunEffects } from '@ngrx/effects';
110+
import { Actions, Effect, OnRunEffects, EffectsNotification } from '@ngrx/effects';
111111

112112
@Injectable()
113113
export class UserEffects implements OnRunEffects {
@@ -119,7 +119,7 @@ export class UserEffects implements OnRunEffects {
119119
console.log(action);
120120
});
121121

122-
ngrxOnRunEffects(resolvedEffects$: Observable<Action>) {
122+
ngrxOnRunEffects(resolvedEffects$: Observable<EffectsNotification>) {
123123
return this.actions$.ofType('LOGGED_IN')
124124
.exhaustMap(() => resolvedEffects$.takeUntil('LOGGED_OUT'));
125125
}

modules/effects/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ export { EffectsModule } from './effects_module';
55
export { EffectSources } from './effect_sources';
66
export { OnRunEffects } from './on_run_effects';
77
export { toPayload } from './util';
8+
export { EffectNotification } from './effect_notification';

0 commit comments

Comments
 (0)