Permalink
Browse files

fix(typings): Epic type parameter for State (third type param) now de…

…faults to any instead of void
  • Loading branch information...
jayphelps committed Jun 19, 2018
1 parent cef76e2 commit 03e69cc3fa5f6bd1e224fa726866013ab629391f
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.d.ts
@@ -33,8 +33,8 @@ export declare class StateObservable<S> extends Observable<S> {
value: S
}

export declare interface Epic<T extends Action, O extends T = T, S = void, D = any> {
(action$: ActionsObservable<T>, state$: StateObservable<S>, dependencies: D): Observable<O>;
export declare interface Epic<Input extends Action = any, Output extends Input = Input, State = any, Dependencies = any> {
(action$: ActionsObservable<Input>, state$: StateObservable<State>, dependencies: Dependencies): Observable<Output>;
}

export interface EpicMiddleware<T extends Action, O extends T = T, S = void, D = any> extends Middleware {

0 comments on commit 03e69cc

Please sign in to comment.