DefinitelyTyped/types/redux-devtools/index.d.ts
Nathan Shively-Sanders 7e7af62444
Update redux dependency of redux-devtools (#36968)
This fixes a build failure on DT, and makes things less confusing for
maintainers by using the same version for redux-devtools AND react-redux.
2019-07-17 16:05:00 -07:00

21 lines
666 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
// TypeScript Version: 3.0
import * as React from 'react';
import { StoreEnhancer } from 'redux';
export interface IDevTools {
new (): JSX.ElementClass;
instrument(): StoreEnhancer
}
export declare function createDevTools(el: React.ReactElement): IDevTools;
export declare function persistState(debugSessionKey: string): StoreEnhancer;
declare const factory: { instrument(): (opts: any) => any };
export default factory;