diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 00000000..c589f5fb --- /dev/null +++ b/index.d.ts @@ -0,0 +1,19 @@ +// Type definitions for redux-devtools 3.4.1 +// TypeScript Version: 2.8.1 + +import * as React from "react"; +import { StoreEnhancer } from "redux"; + +export interface DevTools { + new (): JSX.ElementClass; + instrument(opts?: any): StoreEnhancer; +} + +export declare function createDevTools(el: React.ReactElement): DevTools; +export declare function persistState( + debugSessionKey: string +): StoreEnhancer; + +declare const factory: { instrument(opts?: any): () => StoreEnhancer }; + +export default factory;