DefinitelyTyped/types/react-redux-epic/index.d.ts
Vincent Langlet 1a07ffda4e Fix lint
2019-02-12 14:01:30 +01:00

24 lines
709 B
TypeScript

// Type definitions for react-redux-epic 1.1
// Project: https://github.com/BerkeleyTrue/react-redux-epic#readme
// Definitions by: forabi <https://github.com/forabi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from 'react';
import { Observable } from 'rxjs/Observable';
import { Action } from 'redux';
import { Epic } from 'redux-observable';
export interface Action {
type: string;
}
export function wrapRootEpic<T extends Action, S, D, O extends T>(
epic: Epic<T, S, D, O>
): Epic<T, S, D, O>;
export function renderToString(
element: React.ReactElement,
wrappedEpic: Epic<any, any>
): Observable<{ markup: string }>;