Skip to content

Commit 6f140b5

Browse files
authored
Merge pull request #402 from dtweedle/typings
Include Typings in package and fix missing instrument options
2 parents faaacea + 6f5d2c6 commit 6f140b5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

index.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Redux version 4.0.0
2+
// Type definitions for redux-devtools 3.4.1
3+
// TypeScript Version: 2.8.1
4+
5+
import * as React from "react";
6+
import { StoreEnhancer } from "redux";
7+
8+
export interface DevTools {
9+
new (): JSX.ElementClass;
10+
instrument(opts?: any): StoreEnhancer;
11+
}
12+
13+
export declare function createDevTools(el: React.ReactElement<any>): DevTools;
14+
export declare function persistState(debugSessionKey: string): StoreEnhancer;
15+
16+
declare const factory: { instrument(opts?: any): () => StoreEnhancer };
17+
18+
export default factory;

0 commit comments

Comments
 (0)