diff --git a/backend/src/types.d.ts b/backend/src/types.d.ts index 4f21a45..0ac9c89 100644 --- a/backend/src/types.d.ts +++ b/backend/src/types.d.ts @@ -27,6 +27,10 @@ type EventResult = { message: string; }; +declare global { + type GameEngine = import('./engine').GameEngine; +} + type GameEventType = 'DRAW_CARD' | 'THROW_CARD'; type GameEvent = diff --git a/frontend/src/pages/Error.tsx b/frontend/src/pages/Error.tsx index 7a93fd7..607e46e 100644 --- a/frontend/src/pages/Error.tsx +++ b/frontend/src/pages/Error.tsx @@ -2,10 +2,17 @@ import { Link } from 'react-router-dom'; function Error() { return ( -