Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-school-app
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
wx-school-app
Commits
38f9d247
Commit
38f9d247
authored
Mar 11, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改window类型判断
parent
11b15c3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
global.d.ts
global.d.ts
+0
-4
index.ts
src/store/index.ts
+3
-2
No files found.
global.d.ts
View file @
38f9d247
...
@@ -8,7 +8,3 @@ declare module '*.less';
...
@@ -8,7 +8,3 @@ declare module '*.less';
declare
module
'*.scss'
;
declare
module
'*.scss'
;
declare
module
'*.sass'
;
declare
module
'*.sass'
;
declare
module
'*.styl'
;
declare
module
'*.styl'
;
interface
Window
{
__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
:
(
option
)
=>
any
;
}
src/store/index.ts
View file @
38f9d247
...
@@ -3,8 +3,9 @@ import thunkMiddleware from 'redux-thunk';
...
@@ -3,8 +3,9 @@ import thunkMiddleware from 'redux-thunk';
import
rootReducer
from
'./reducers'
;
import
rootReducer
from
'./reducers'
;
const
composeEnhancers
=
const
composeEnhancers
=
typeof
window
===
'object'
&&
window
.
__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
typeof
window
===
'object'
&&
?
window
.
__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
({
(
window
as
any
).
__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
?
(
window
as
any
).
__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
({
// Specify extension’s options like name, actionsBlacklist, actionsCreators, serialize...
// Specify extension’s options like name, actionsBlacklist, actionsCreators, serialize...
})
})
:
compose
;
:
compose
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment