added typings from the definetly typed project and included instrument options

This commit is contained in:
Duncan Tweed 2018-05-10 14:52:07 +10:00
parent fc1ab01ca1
commit 87e103e2be

19
index.d.ts vendored Normal file
View File

@ -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<any>;
}
export declare function createDevTools(el: React.ReactElement<any>): DevTools;
export declare function persistState(
debugSessionKey: string
): StoreEnhancer<any>;
declare const factory: { instrument(opts?: any): () => StoreEnhancer<any> };
export default factory;