diff --git a/backend/entities/game.ts b/backend/entities/game.ts index 0ea9ca5..5e28188 100644 --- a/backend/entities/game.ts +++ b/backend/entities/game.ts @@ -311,6 +311,6 @@ export const game = { const { finished, stage } = serverGame; if (finished == 0) return 0; if (stage < 2) return 0; - return Math.floor(Math.pow(2, stage * 0.9 + stage * 1.2)); + return Math.floor(Math.pow(2, stage * 0.92 + stage * 1.2)); }, }; diff --git a/src/hooks.ts b/src/hooks.ts index aacdcfa..652626c 100644 --- a/src/hooks.ts +++ b/src/hooks.ts @@ -2,12 +2,12 @@ import { keepPreviousData, useInfiniteQuery, useMutation, - UseMutationResult, + type UseMutationResult, useQuery, useQueryClient, - UseQueryResult, + type UseQueryResult, } from "@tanstack/react-query"; -import { Routes } from "../backend/router"; +import type { Routes } from "../backend/router"; import { wsClient } from "./wsClient"; import type { z } from "zod"; diff --git a/src/themes/romance.ts b/src/themes/romance.ts index f357694..a39555b 100644 --- a/src/themes/romance.ts +++ b/src/themes/romance.ts @@ -1,4 +1,4 @@ -import { Theme } from "./Theme"; +import type { Theme } from "./Theme"; export const romanceTheme: Theme = { size: 32, diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index 6f1e8a5..4c81fea 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -26,6 +26,11 @@ declare module "*&inline" { export default outputs; } +declare module "*.png" { + const outputs: string; + export default outputs; +} + declare module "*?as=metadata" { const outputs: OutputMetadata[]; export default outputs; diff --git a/tsconfig.node.json b/tsconfig.node.json index e1c9f11..595c2e8 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -24,5 +24,5 @@ "noUnusedParameters": false, "noPropertyAccessFromIndexSignature": false }, - "include": ["vite.config.ts", "backend/**/*.ts"] + "include": ["vite.config.ts", "backend/**/*.ts", "src", "backend"] }