Skip to content

Commit

Permalink
add EffectConfig type to Effect decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-okrushko committed May 22, 2019
1 parent 2041346 commit cf21508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/effects/src/effect_decorator.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { compose } from '@ngrx/store';
import { EffectMetadata } from './models';
import { EffectMetadata, EffectConfig } from './models';
import { getSourceForInstance } from './utils';

const METADATA_KEY = '__@ngrx/effects__';

export function Effect<T>({
dispatch = true,
resubscribeOnError = true,
} = {}): PropertyDecorator {
}: EffectConfig = {}): PropertyDecorator {
return function<K extends Extract<keyof T, string>>(
target: T,
propertyName: K
Expand Down

0 comments on commit cf21508

Please sign in to comment.