// src/types/express.d.ts
import { Logger } from 'pino';

/**
 * This file uses declaration merging to add a custom `log` property to the
 * global Express Request interface. This makes the request-scoped logger
 * available in a type-safe way in all route handlers, as required by ADR-004.
 */
declare global {
  namespace Express {
    export interface Request {
      log: Logger;
    }
  }
}