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

Commit

Permalink
Merge 41ee5fa into da75351
Browse files Browse the repository at this point in the history
  • Loading branch information
forabi authored Feb 18, 2018
2 parents da75351 + 41ee5fa commit dab4d75
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.1.0",
"description": "Server side rendering for Redux-Observable",
"main": "lib",
"typings": "typings.d.ts",
"scripts": {
"commit": "git-cz",
"pretest": "npm run lint",
Expand Down
26 changes: 26 additions & 0 deletions typings.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
declare module 'react-redux-epic' {
import React from 'react';
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 dab4d75

Please sign in to comment.