File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ process.env.NODE_ENV = 'production';
14
14
15
15
class Main {
16
16
private side : HTMLElement ;
17
- private statusBarTile : StatusBar . IStatusBarView ;
17
+ private statusBarTile : StatusBar . IStatusBarView | null ;
18
18
private subscriptions : any ;
19
19
constructor ( ) {
20
20
injectTapEventPlugin ( ) ; // remove later
Original file line number Diff line number Diff line change @@ -4,18 +4,18 @@ import thunk from 'redux-thunk';
4
4
5
5
const configureStore = ( { reducer, devMode} ) => {
6
6
7
- const middlewares = [ thunk ] ;
7
+ let middlewares = [ thunk ] ;
8
8
9
9
// use logger if devMode
10
10
if ( devMode ) {
11
- const logger = createLogger ( ) ;
11
+ const logger = ( createLogger as any ) ( ) ;
12
12
middlewares . push ( logger ) ;
13
13
} else {
14
14
process . env . NODE_ENV = 'production' ;
15
15
}
16
16
17
17
// create store with middlewares
18
- const store : Redux . Store = createStore (
18
+ const store : Redux . Store < any > = createStore (
19
19
reducer ,
20
20
applyMiddleware ( ...middlewares )
21
21
) ;
Original file line number Diff line number Diff line change 1
1
export default function polyfillObjectValues ( ) : void {
2
2
// Object.values (ES7)
3
3
if ( typeof Object . values !== 'function' ) {
4
- Object . values = function ( obj ) {
5
- let vals = [ ] ;
4
+ Object . values = function ( obj : Object ) : any [ ] {
5
+ let vals = new Set ( ) ;
6
6
for ( let key in obj ) {
7
- vals . push ( obj [ key ] ) ;
7
+ vals . add ( obj [ key ] ) ;
8
8
}
9
- return vals ;
9
+ return Array . from ( vals ) ;
10
10
} ;
11
11
}
12
12
}
You can’t perform that action at this time.
0 commit comments