Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commitdc04e95

Browse files
committed
fix various typing issues
1 parent45c1ce1 commitdc04e95

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

‎src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ process.env.NODE_ENV = 'production';
1414

1515
classMain{
1616
privateside:HTMLElement;
17-
privatestatusBarTile:StatusBar.IStatusBarView;
17+
privatestatusBarTile:StatusBar.IStatusBarView|null;
1818
privatesubscriptions:any;
1919
constructor(){
2020
injectTapEventPlugin();// remove later

‎src/options/configureStore.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ import thunk from 'redux-thunk';
44

55
constconfigureStore=({reducer, devMode})=>{
66

7-
constmiddlewares=[thunk];
7+
letmiddlewares=[thunk];
88

99
// use logger if devMode
1010
if(devMode){
11-
constlogger=createLogger();
11+
constlogger=(createLoggerasany)();
1212
middlewares.push(logger);
1313
}else{
1414
process.env.NODE_ENV='production';
1515
}
1616

1717
// create store with middlewares
18-
conststore:Redux.Store=createStore(
18+
conststore:Redux.Store<any>=createStore(
1919
reducer,
2020
applyMiddleware(...middlewares)
2121
);

‎src/polyfills/object-values.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
exportdefaultfunctionpolyfillObjectValues():void{
22
// Object.values (ES7)
33
if(typeofObject.values!=='function'){
4-
Object.values=function(obj){
5-
letvals=[];
4+
Object.values=function(obj:Object):any[]{
5+
letvals=newSet();
66
for(letkeyinobj){
7-
vals.push(obj[key]);
7+
vals.add(obj[key]);
88
}
9-
returnvals;
9+
returnArray.from(vals);
1010
};
1111
}
1212
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp