Skip to content


Browse files Browse the repository at this point in the history
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 25ac601
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion index.d.ts
Expand Up @@ -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.