Refactor type annotations and router initialization

Standardized type annotations for interfaces in user.ts and improved type safety in webapi.ts. Updated all Express router initializations to explicitly declare the Router type. Added missing RequestHandler typings in uploader modules for better type checking.
This commit is contained in:
手瓜一十雪
2026-01-22 17:35:54 +08:00
parent 772f07c58b
commit 01958d47a4
16 changed files with 123 additions and 121 deletions

View File

@@ -16,7 +16,7 @@ import json5 from 'json5';
type ActionNameType = typeof ActionName[keyof typeof ActionName];
const router = Router();
const router: Router = Router();
const DEFAULT_ADAPTER_NAME = 'debug-primary';
/**