Update redux dependency of redux-devtools (#36968)

This fixes a build failure on DT, and makes things less confusing for
maintainers by using the same version for redux-devtools AND react-redux.
This commit is contained in:
Nathan Shively-Sanders 2019-07-17 16:05:00 -07:00 committed by GitHub
parent 4868a800d3
commit 7e7af62444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -5,15 +5,15 @@
// TypeScript Version: 3.0
import * as React from 'react';
import { GenericStoreEnhancer } from 'redux';
import { StoreEnhancer } from 'redux';
export interface IDevTools {
new (): JSX.ElementClass;
instrument(): GenericStoreEnhancer
instrument(): StoreEnhancer
}
export declare function createDevTools(el: React.ReactElement): IDevTools;
export declare function persistState(debugSessionKey: string): GenericStoreEnhancer;
export declare function persistState(debugSessionKey: string): StoreEnhancer;
declare const factory: { instrument(): (opts: any) => any };

View File

@ -1,6 +1,6 @@
{
"private": true,
"dependencies": {
"redux": "^3.6.0"
"redux": "^4.0.4"
}
}

View File

@ -1,9 +1,9 @@
import * as React from 'react'
import { compose, createStore, Reducer, Store, GenericStoreEnhancer } from 'redux'
import { compose, createStore, Reducer, Store, StoreEnhancer } from 'redux'
import { Provider } from 'react-redux'
import { createDevTools, persistState } from 'redux-devtools'
declare var reducer: Reducer<any>
declare var reducer: Reducer
class DevToolsMonitor extends React.Component {
}
@ -15,7 +15,7 @@ const DevTools = createDevTools(
const storeEnhancer = compose(
DevTools.instrument(),
persistState('test-session')
) as GenericStoreEnhancer
) as StoreEnhancer
const finalCreateStore = storeEnhancer(createStore)