feat: 所有的类型检查

This commit is contained in:
手瓜一十雪 committed 2025-11-15 12:57:19 +08:00
1 parent 19888d52dc
commit df824d77ae
50 files changed
+477 -94

No files matched your search

@@ -2,9 +2,9 @@ import { NextFunction, Request, Response } from 'express';
import { getInitialWebUiToken } from '@/napcat-webui-backend/index';
import { AuthHelper } from '@/napcat-webui-backend/helper/SignToken';
import { sendError } from '@/napcat-webui-backend/utils/response';
import type { WebUiCredentialJson } from '@/napcat-webui-backend/types';
import { AuthHelper } from '@/napcat-webui-backend/src/helper/SignToken';
import { sendError } from '@/napcat-webui-backend/src/utils/response';
import type { WebUiCredentialJson } from '@/napcat-webui-backend/src/types';
// 鉴权中间件
export async function auth (req: Request, res: Response, next: NextFunction) {