Permalink
Browse files

fix(typings): Enable second parameter for the createEpicMiddleware

When using TypeScript, you will be able to use any adapter
without TypeScript compiler complaining about wrong signature of call target.
  • Loading branch information...
michalvankodev committed Dec 2, 2016
1 parent 7e1eb09 commit 25ac601fee0fc8a45c99ddbf2a78398c68763aaa
Showing with 10 additions and 1 deletion.
  1. +10 −1 index.d.ts
@@ -35,6 +35,15 @@ export interface EpicMiddleware<T> extends Middleware {
replaceEpic(nextEpic: Epic<T>): void;
}
export declare function createEpicMiddleware<T>(rootEpic: Epic<T>): EpicMiddleware<T>;
interface Adapter {
input: (input$: Observable<any>) => any;
output: (output$: any) => Observable<any>;
}
interface Options {
adapter?: Adapter;
}
export declare function createEpicMiddleware<T>(rootEpic: Epic<T>, options?: Options): EpicMiddleware<T>;
export declare function combineEpics<T>(...epics: Epic<T>[]): Epic<T>;

0 comments on commit 25ac601

Please sign in to comment.