mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Add log & dock monitors tests, fix devtools persostState
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
/// <reference path="../react/react.d.ts" />
|
||||
/// <reference path="./redux-devtools-dock-monitor.d.ts" />
|
||||
|
||||
import * as React from 'react'
|
||||
import * as DockMonitor from 'redux-devtools-dock-monitor'
|
||||
|
||||
let dockMonitor = <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q' />
|
||||
@@ -0,0 +1,7 @@
|
||||
/// <reference path="../react/react.d.ts" />
|
||||
/// <reference path="./redux-devtools-log-monitor.d.ts" />
|
||||
|
||||
import * as React from 'react'
|
||||
import * as LogMonitor from 'redux-devtools-log-monitor'
|
||||
|
||||
let logMonitor = <LogMonitor />
|
||||
@@ -1,21 +1,18 @@
|
||||
/// <reference path="../react/react.d.ts" />
|
||||
/// <reference path="../redux/redux.d.ts" />
|
||||
/// <reference path="../react-redux/react-redux.d.ts" />
|
||||
/// <reference path="../redux-devtools-dock-monitor/redux-devtools-dock-monitor.d.ts" />
|
||||
/// <reference path="../redux-devtools-log-monitor/redux-devtools-log-monitor.d.ts" />
|
||||
/// <reference path="redux-devtools.d.ts" />
|
||||
|
||||
import * as React from 'react'
|
||||
import { createStore, applyMiddleware, compose } from 'redux'
|
||||
import { Provider } from 'react-redux'
|
||||
import { createDevTools, persistState } from 'redux-devtools'
|
||||
import * as LogMonitor from 'redux-devtools-log-monitor'
|
||||
import * as DockMonitor from 'redux-devtools-dock-monitor'
|
||||
|
||||
class DevToolsMonitor extends React.Component<any, any> {
|
||||
}
|
||||
|
||||
const DevTools = createDevTools(
|
||||
<DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q'>
|
||||
<LogMonitor />
|
||||
</DockMonitor>
|
||||
<DevToolsMonitor />
|
||||
)
|
||||
|
||||
const finalCreateStore = compose(
|
||||
|
||||
Vendored
+1
-1
@@ -14,7 +14,7 @@ declare module "redux-devtools" {
|
||||
}
|
||||
|
||||
export function createDevTools(el: React.ReactElement<any>): IDevTools
|
||||
export function persistState(debugSessionKey: () => string): Function
|
||||
export function persistState(debugSessionKey: string): Function
|
||||
|
||||
var factory: { instrument(): Function }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user