Skip to content

Commit dfabdb8

Browse files
committed
Fix typing in module definitions
1 parent 581d6ce commit dfabdb8

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/core/core.module.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ export interface CoreAwareState {
77
core: CoreState;
88
}
99

10-
export const CoreModule: ISagaModule<CoreState> = {
10+
export const CoreModule: ISagaModule<CoreAwareState> = {
1111
id: 'core',
12-
reducerMap: {
13-
core: coreReducer,
14-
} as any,
12+
reducerMap: { core: coreReducer },
1513
sagas: [coreSaga],
1614
initialActions: [],
1715
finalActions: [],

src/hero/hero.module.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ export interface HeroAwareState {
77
hero: HeroState;
88
}
99

10-
export const HeroModule: ISagaModule<HeroState> = {
10+
export const HeroModule: ISagaModule<HeroAwareState> = {
1111
id: 'hero',
12-
reducerMap: {
13-
hero: heroReducer,
14-
} as any,
12+
reducerMap: { hero: heroReducer },
1513
sagas: [heroSaga],
1614
initialActions: [],
1715
finalActions: [],

0 commit comments

Comments
 (0)