XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

chore: fix unsafe assignment of `any` value warning

f0eea818
Sainan <sainan@calamity.inc>
提交于

代码差异

1 个文件 +1 -1
Modified src/services/configService.ts +1 -1
@@ -6,7 +6,7 @@ import { logger } from "@/src/utils/logger";
6 6 const rootDir = path.join(__dirname, "../..");
7 7 const repoDir = path.basename(rootDir) == "build" ? path.join(rootDir, "..") : rootDir;
8 8 const configPath = path.join(repoDir, "config.json");
9 export const config: IConfig = JSON.parse(fs.readFileSync(configPath, "utf-8"));
9 export const config = JSON.parse(fs.readFileSync(configPath, "utf-8")) as IConfig;
10 10
11 11 let amnesia = false;
12 12 fs.watchFile(configPath, () => {