File tree 3 files changed +15
-12
lines changed
3 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 1
1
import { Observable } from 'rxjs' ;
2
2
import { Action } from '@ngrx/store' ;
3
- import { EffectMetadata , EffectConfig , DEFAULT_EFFECT_CONFIG } from './models' ;
4
-
5
- const CREATE_EFFECT_METADATA_KEY = '__@ngrx/effects_create__' ;
6
-
7
- interface CreateEffectMetadata {
8
- [ CREATE_EFFECT_METADATA_KEY ] : EffectConfig ;
9
- }
3
+ import {
4
+ EffectMetadata ,
5
+ EffectConfig ,
6
+ DEFAULT_EFFECT_CONFIG ,
7
+ CreateEffectMetadata ,
8
+ CREATE_EFFECT_METADATA_KEY ,
9
+ } from './models' ;
10
10
11
11
type DispatchType < T > = T extends { dispatch : infer U } ? U : true ;
12
12
type ObservableType < T , OriginalType > = T extends false ? OriginalType : Action ;
Original file line number Diff line number Diff line change @@ -3,15 +3,12 @@ export { EffectConfig } from './models';
3
3
export { Effect } from './effect_decorator' ;
4
4
export { getEffectsMetadata } from './effects_metadata' ;
5
5
export { mergeEffects } from './effects_resolver' ;
6
- export { EffectsMetadata } from './models' ;
6
+ export { EffectsMetadata , CreateEffectMetadata } from './models' ;
7
7
export { Actions , ofType } from './actions' ;
8
8
export { EffectsModule } from './effects_module' ;
9
9
export { EffectSources } from './effect_sources' ;
10
10
export { EffectNotification } from './effect_notification' ;
11
- export {
12
- ROOT_EFFECTS_INIT ,
13
- rootEffectsInit ,
14
- } from './effects_root_module' ;
11
+ export { ROOT_EFFECTS_INIT , rootEffectsInit } from './effects_root_module' ;
15
12
export { act } from './act' ;
16
13
export {
17
14
OnIdentifyEffects ,
Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ export const DEFAULT_EFFECT_CONFIG: Readonly<Required<EffectConfig>> = {
18
18
resubscribeOnError : true ,
19
19
} ;
20
20
21
+ export const CREATE_EFFECT_METADATA_KEY = '__@ngrx/effects_create__' ;
22
+
23
+ export interface CreateEffectMetadata {
24
+ [ CREATE_EFFECT_METADATA_KEY ] : EffectConfig ;
25
+ }
26
+
21
27
export type EffectPropertyKey < T extends Object > = Exclude <
22
28
keyof T ,
23
29
keyof Object
You can’t perform that action at this time.
0 commit comments