DefinitelyTyped/redux-devtools/redux-devtools.d.ts

22 lines
642 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'
interface IDevTools {
new (): JSX.ElementClass
instrument(): Function
}
export function createDevTools(el: React.ReactElement<any>): IDevTools
export function persistState(debugSessionKey: string): Function
var factory: { instrument(): Function }
export default factory;
}