Skip to content

Commit

Permalink
fix(Effects): Export EffectsNotification interface (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts authored and MikeRyanDev committed Aug 3, 2017
1 parent 065d33e commit 2b1a076
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/effects/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ import 'rxjs/add/operator/takeUntil';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Action } from '@ngrx/store';
import { Actions, Effect, OnRunEffects } from '@ngrx/effects';
import { Actions, Effect, OnRunEffects, EffectsNotification } from '@ngrx/effects';

@Injectable()
export class UserEffects implements OnRunEffects {
Expand All @@ -119,7 +119,7 @@ export class UserEffects implements OnRunEffects {
console.log(action);
});

ngrxOnRunEffects(resolvedEffects$: Observable<Action>) {
ngrxOnRunEffects(resolvedEffects$: Observable<EffectsNotification>) {
return this.actions$.ofType('LOGGED_IN')
.exhaustMap(() => resolvedEffects$.takeUntil('LOGGED_OUT'));
}
Expand Down
1 change: 1 addition & 0 deletions modules/effects/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export { EffectsModule } from './effects_module';
export { EffectSources } from './effect_sources';
export { OnRunEffects } from './on_run_effects';
export { toPayload } from './util';
export { EffectNotification } from './effect_notification';

0 comments on commit 2b1a076

Please sign in to comment.