Files
DefinitelyTyped/types/react-redux-epic/index.d.ts
Muhammad Fawwaz Orabi 317dfc327a Add type definitions for react-redux-epic (#23823)
* Add type definitions for react-redux-epic

* Require TS 2.6

* Add package.json

* Trigger CI

* Address feedback

* Add tests

* Remove unnecessary type paramerters

* Fix lint issues

* Re-add generics
2018-02-26 11:41:38 -08:00

23 lines
667 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.6
import * as React from 'react';
import { Observable } from 'rxjs/Observable';
import { Epic } from 'redux-observable';
export interface Action {
type: string;
}
export function wrapRootEpic<T, S, D, O extends T>(
epic: Epic<T, S, D, O>
): Epic<T, S, D, O>;
export function renderToString(
element: React.ReactElement<any>,
wrappedEpic: Epic<any, any>
): Observable<{ markup: string }>;