Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 03e69cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Expand Up @@ -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 {
Expand Down

0 comments on commit 03e69cc

Please sign in to comment.