This repository was archived by the owner on Apr 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 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';
1414
1515class Main {
1616 private side : HTMLElement ;
17- private statusBarTile : StatusBar . IStatusBarView ;
17+ private statusBarTile : StatusBar . IStatusBarView | null ;
1818 private subscriptions : any ;
1919 constructor ( ) {
2020 injectTapEventPlugin ( ) ; // remove later
Original file line number Diff line number Diff line change @@ -4,18 +4,18 @@ import thunk from 'redux-thunk';
44
55const configureStore = ( { reducer, devMode} ) => {
66
7- const middlewares = [ thunk ] ;
7+ let middlewares = [ thunk ] ;
88
99 // use logger if devMode
1010 if ( devMode ) {
11- const logger = createLogger ( ) ;
11+ const logger = ( createLogger as any ) ( ) ;
1212 middlewares . push ( logger ) ;
1313 } else {
1414 process . env . NODE_ENV = 'production' ;
1515 }
1616
1717 // create store with middlewares
18- const store : Redux . Store = createStore (
18+ const store : Redux . Store < any > = createStore (
1919 reducer ,
2020 applyMiddleware ( ...middlewares )
2121 ) ;
Original file line number Diff line number Diff line change 11export default function polyfillObjectValues ( ) : void {
22// Object.values (ES7)
33 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 ( ) ;
66 for ( let key in obj ) {
7- vals . push ( obj [ key ] ) ;
7+ vals . add ( obj [ key ] ) ;
88 }
9- return vals ;
9+ return Array . from ( vals ) ;
1010 } ;
1111 }
1212}
You can’t perform that action at this time.
0 commit comments