mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-01-31 19:54:35 +03:00
Merge pull request #402 from dtweedle/typings
Include Typings in package and fix missing instrument options
This commit is contained in:
commit
6f140b5de3
18
index.d.ts
vendored
Normal file
18
index.d.ts
vendored
Normal 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;
|
Loading…
Reference in New Issue
Block a user