chore: fix unsafe assignment of any value warning

This commit is contained in:
Sainan 2024-12-29 23:33:02 +01:00
parent 412968026e
commit f0eea818f9

View File

@ -6,7 +6,7 @@ import { logger } from "@/src/utils/logger";
const rootDir = path.join(__dirname, "../.."); const rootDir = path.join(__dirname, "../..");
const repoDir = path.basename(rootDir) == "build" ? path.join(rootDir, "..") : rootDir; const repoDir = path.basename(rootDir) == "build" ? path.join(rootDir, "..") : rootDir;
const configPath = path.join(repoDir, "config.json"); const configPath = path.join(repoDir, "config.json");
export const config: IConfig = JSON.parse(fs.readFileSync(configPath, "utf-8")); export const config = JSON.parse(fs.readFileSync(configPath, "utf-8")) as IConfig;
let amnesia = false; let amnesia = false;
fs.watchFile(configPath, () => { fs.watchFile(configPath, () => {