Corregir errores de TypeScript y optimizar build para Docker

This commit is contained in:
2025-08-15 12:22:46 -06:00
parent c0fa1e4e70
commit 9f148fbb4e
8 changed files with 60 additions and 20 deletions

View File

@@ -161,11 +161,11 @@ class ColyseusService {
});
// Ensure the room id is set
if (!gameRoom.id) {
gameRoom.id = data.roomId;
if (!(gameRoom as any).id) {
(gameRoom as any).id = data.roomId;
}
console.log('Successfully joined game room:', gameRoom.id, gameRoom);
console.log('Successfully joined game room:', (gameRoom as any).id, gameRoom);
console.log('Setting gameRoom.value...');
this.gameRoom.value = gameRoom;
this.currentRoom = gameRoom;

View File

@@ -1,4 +1,4 @@
import Loki from "lokijs";
import Loki, { Collection } from "lokijs";
export interface LocalPlayerDoc {
id: string; // fixed id for local profile