diff --git a/packages/hydrojudge/tsconfig.json b/packages/hydrojudge/tsconfig.json index 6c06cb233..bfb418460 100644 --- a/packages/hydrojudge/tsconfig.json +++ b/packages/hydrojudge/tsconfig.json @@ -7,6 +7,7 @@ "moduleResolution": "node", "declaration": true, "sourceMap": true, + "composite": true, "esModuleInterop": true, "allowJs": false, "resolveJsonModule": true diff --git a/packages/hydrooj/src/entry/setup.ts b/packages/hydrooj/src/entry/setup.ts index df267fe70..088c769e7 100644 --- a/packages/hydrooj/src/entry/setup.ts +++ b/packages/hydrooj/src/entry/setup.ts @@ -78,7 +78,7 @@ async function get(ctx: Context) { async function post(ctx: Context) { const { host, port, name, username, password, - // @ts-expect-error + // @ts-ignore } = ctx.request.body; let mongourl = 'mongodb://'; if (username) mongourl += `${username}:${password}@`; diff --git a/packages/hydrooj/tsconfig.json b/packages/hydrooj/tsconfig.json index 615bf0265..76a66de32 100644 --- a/packages/hydrooj/tsconfig.json +++ b/packages/hydrooj/tsconfig.json @@ -4,9 +4,9 @@ "module": "commonjs", "esModuleInterop": true, "moduleResolution": "node", + "composite": true, "declaration": true, "sourceMap": true, - "composite": true, "strictBindCallApply": true, "experimentalDecorators": true, "outDir": "dist",