File tree Expand file tree Collapse file tree 3 files changed +1752
-9
lines changed Expand file tree Collapse file tree 3 files changed +1752
-9
lines changed Original file line number Diff line number Diff line change 99 "start" : " node dist/index.js"
1010 },
1111 "dependencies" : {
12- "@types/express" : " ~4.0.33 " ,
13- "@types/socket.io" : " ^ 1.4.27 " ,
12+ "@types/express" : " ~4.0.36 " ,
13+ "@types/socket.io" : " ~ 1.4.29 " ,
1414 "express" : " ~4.10.0" ,
15- "socket.io" : " ~1.5.1 "
15+ "socket.io" : " ~2.0.3 "
1616 },
1717 "devDependencies" : {
18- "gulp" : " ^ 3.9.1" ,
19- "gulp-typescript" : " ^3.1.2 " ,
20- "typescript" : " ^2.0.9 "
18+ "gulp" : " ~ 3.9.1" ,
19+ "gulp-typescript" : " ~3.2.1 " ,
20+ "typescript" : " ~2.4.2 "
2121 }
2222}
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ import * as socketIo from "socket.io";
55import { Message } from "./model" ;
66
77class Server {
8- public static readonly PORT = 8080 ;
8+ public static readonly PORT : number = 8080 ;
99 public app : any ;
1010 private server : any ;
1111 private io : any ;
12- private port : number ;
12+ private port : string | number ;
1313
1414 public static bootstrap ( ) : Server {
1515 return new Server ( ) ;
@@ -59,4 +59,4 @@ class Server {
5959}
6060
6161let server = Server . bootstrap ( ) ;
62- export = server . app ;
62+ export default server . app ;
You can’t perform that action at this time.
0 commit comments