DefinitelyTyped/types/redux-devtools/index.d.ts
Vincent Langlet 1a07ffda4e Fix lint
2019-02-12 14:01:30 +01:00

21 lines
687 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 { GenericStoreEnhancer } from 'redux';
export interface IDevTools {
new (): JSX.ElementClass;
instrument(): GenericStoreEnhancer
}
export declare function createDevTools(el: React.ReactElement): IDevTools;
export declare function persistState(debugSessionKey: string): GenericStoreEnhancer;
declare const factory: { instrument(): (opts: any) => any };
export default factory;