Merge pull request #402 from dtweedle/typings

Include Typings in package and fix missing instrument options
This commit is contained in:
Mihail Diordiev 2018-11-16 00:02:25 +02:00 committed by GitHub
commit 6f140b5de3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

18
index.d.ts vendored Normal file
View File

@ -0,0 +1,18 @@
// Redux version 4.0.0
// 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<any>): DevTools;
export declare function persistState(debugSessionKey: string): StoreEnhancer;
declare const factory: { instrument(opts?: any): () => StoreEnhancer };
export default factory;