DefinitelyTyped/types/react-redux-epic/index.d.ts
Nathan Shively-Sanders 3d6e86fd92
Fix incorrect import/export clashes. (#38730)
* Fix incorrect import/export clashes.

A new error in Typescript 3.7 forbids name clashes like this:

```ts
import { X } from 'y'
export interface X { }
```

Previously they were incorrectly allowed. Typescript 3.7 will have a
beta version in the next day or two. In the meantime you can try
typescript@next -- the nightly build -- to see these errors.

* Missed a file!
2019-09-30 12:33:36 -07:00

23 lines
677 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 { 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 }>;