organize imports

This commit is contained in:
Nathaniel Tampus
2023-05-01 15:15:49 +08:00
parent e38420c390
commit da7b4c40a3
25 changed files with 56 additions and 46 deletions

View File

@@ -1,7 +1,8 @@
import GameModel, { activeGames } from "../db/models/game.model.js";
import type { Game } from "@chessu/types";
import type { DisconnectReason, Socket } from "socket.io";
import { Chess } from "chess.js";
import type { DisconnectReason, Socket } from "socket.io";
import GameModel, { activeGames } from "../db/models/game.model.js";
import { io } from "../server.js";
export async function joinLobby(this: Socket, gameCode: string) {