mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-11 04:07:34 +03:00
added typings from the definetly typed project and included instrument options
This commit is contained in:
parent
fc1ab01ca1
commit
87e103e2be
19
index.d.ts
vendored
Normal file
19
index.d.ts
vendored
Normal 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;
|
Loading…
Reference in New Issue
Block a user