mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
> error TS4023: Exported variable 'DevTools' has or is using name 'IDevTools' from external module "/Users/remojansen/CODE/forks/redux-bootstrap/node_modules/@types/redux-devtools/index" but cannot be named.
23 lines
671 B
TypeScript
23 lines
671 B
TypeScript
// Type definitions for redux-devtools 3.0.0
|
|
// Project: https://github.com/gaearon/redux-devtools
|
|
// Definitions by: Petryshyn Sergii <https://github.com/mc-petry>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference path="../react/react.d.ts" />
|
|
|
|
declare module "redux-devtools" {
|
|
import * as React from 'react'
|
|
|
|
export interface IDevTools {
|
|
new (): JSX.ElementClass
|
|
instrument(): (opts: any) => any;
|
|
}
|
|
|
|
export function createDevTools(el: React.ReactElement<any>): IDevTools
|
|
export function persistState(debugSessionKey: string): Function
|
|
|
|
var factory: { instrument(): (opts: any) => any }
|
|
|
|
export default factory;
|
|
}
|