chore: prettier format pass on branch files

Auto-format all files modified during the documents-hub-split feature
branch that were not yet aligned with the project's Prettier config
(single quotes, semicolons, trailing commas).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-11 13:01:47 +02:00
parent eceb77a6c4
commit 0e8feb1073
77 changed files with 1174 additions and 1356 deletions

View File

@@ -52,10 +52,11 @@ export interface AuthContext {
*/
export type RouteParams = Record<string, string | string[]>;
export type RouteHandler<
TParams extends RouteParams = Record<string, string>,
T = unknown,
> = (req: NextRequest, ctx: AuthContext, params: TParams) => Promise<NextResponse<T>>;
export type RouteHandler<TParams extends RouteParams = Record<string, string>, T = unknown> = (
req: NextRequest,
ctx: AuthContext,
params: TParams,
) => Promise<NextResponse<T>>;
// ─── deepMerge ───────────────────────────────────────────────────────────────
@@ -104,10 +105,7 @@ export function deepMerge(
*/
export function withAuth<TParams extends RouteParams = Record<string, string>>(
handler: RouteHandler<TParams>,
): (
req: NextRequest,
routeContext: { params: Promise<TParams> },
) => Promise<NextResponse> {
): (req: NextRequest, routeContext: { params: Promise<TParams> }) => Promise<NextResponse> {
return async (req, routeContext) => {
// Mint or accept a request id BEFORE entering the ALS frame so every
// log line + the response header reference the same value. Clients