lint
All checks were successful
Deploy to K3s / deploy (push) Successful in 2m5s

This commit is contained in:
2025-12-25 15:17:58 +08:00
parent db8d8c429d
commit 13ec36aa8f
2 changed files with 6 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ export function normalizeAPIError(error: unknown): never {
throw new APIError((error instanceof Error ? `${error.message}` : '') || '未知错误', 400);
}
export function handleAPIError<T extends unknown>(error: unknown, handler: (e: APIError) => T): T {
export function handleAPIError<T>(error: unknown, handler: (e: APIError) => T): T {
if (error instanceof APIError) {
return handler(error);
}