DefinitelyTyped/redux-devtools/redux-devtools.d.ts
Remo H. Jansen 32dbb649db Allow interface to be named (#11673)
> 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.
2016-10-03 22:31:20 +09:00

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;
}