Skip to content
This repository has been archived by the owner on Nov 13, 2020. It is now read-only.

Commit

Permalink
Merge 24c016e into da75351
Browse files Browse the repository at this point in the history
  • Loading branch information
forabi authored Feb 18, 2018
2 parents da75351 + 24c016e commit 36ec22b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions typings.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
declare module 'react-redux-epic' {
import { Observable } from 'rxjs/Observable';
import { Epic } from 'redux-observable';

type Action = {
type: string;
};

export function wrapRootEpic<T extends Action, S, D = any>(
epic: Epic<T, S, D>,
): typeof epic;

export function renderToString<P, T extends Action, S, D = any>(
element: React.ReactElement<P>,
wrappedEpic: Epic<T, S, D>,
): Observable<{ markup: string }>;
}

declare module 'react-redux-epic/client' {
import { Observable } from 'rxjs/Observable';
export function render<P>(
element: React.ReactElement<P>,
container: Element,
): Observable<undefined>;
}

0 comments on commit 36ec22b

Please sign in to comment.