mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 19:59:02 +08:00
* 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
23 lines
667 B
TypeScript
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 }>;
|