Skip to content

Commit b7165b2

Browse files
Fixed to match redux-observable 0.13.0
Interface of EpicMiddleware changed from EpicMiddleware<T> to EpicMiddleware<T, S>
1 parent 3a01cfc commit b7165b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/epic-decorator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function getEpicsMetadata(instance: any): EpicMetadata[] {
2626

2727
}
2828

29-
export function createEpics<T>(...instances: any[]): EpicMiddleware<T> {
29+
export function createEpics<T, S>(...instances: any[]): EpicMiddleware<T, S> {
3030
const epicsMetaData = instances
3131
.map(instance => getEpicsMetadata(instance)
3232
.map(({propertyName}) => instance[propertyName]));
@@ -35,4 +35,4 @@ export function createEpics<T>(...instances: any[]): EpicMiddleware<T> {
3535
const rootEpic = combineEpics<T>(...epics);
3636
return createEpicMiddleware<T>(rootEpic);
3737

38-
}
38+
}

0 commit comments

Comments
 (0)