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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user