Add ResetGame types
This commit is contained in:
parent
aa5159d10f
commit
3441e5acd2
2 changed files with 6 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { games, log } from '../main';
|
||||
import { Server, Socket } from 'socket.io';
|
||||
|
||||
export default (io: Server, socket: Socket, data: any) => {
|
||||
export default (io: Server, socket: Socket, data: ResetGame) => {
|
||||
try {
|
||||
if (!games[data.game_code]) {
|
||||
log.debug(`Can't find game with code: ${data.game_code}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue