From b41bbd5ff66c96dbc034feaae4909435621b5536 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Mon, 7 Jul 2025 21:37:12 -0400 Subject: [PATCH] Fix TypeScript compilation errors with Express Request extensions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove incorrect triple-slash reference path - Use proper import for types module - Add missing locale and t properties to Express Request interface in source file - Ensure generated .d.ts files match source TypeScript definitions 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- src/server.ts | 2 +- src/types/index.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 89e24a6..b04561f 100644 --- a/src/server.ts +++ b/src/server.ts @@ -1,6 +1,6 @@ -/// import dotenv from 'dotenv'; import express, { Request, Response, NextFunction, Application } from 'express'; +import './types'; import cors from 'cors'; import path from 'path'; import cron from 'node-cron'; diff --git a/src/types/index.ts b/src/types/index.ts index a3c6d6a..ca9cb7e 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -75,6 +75,8 @@ declare global { id: string; role: string; }; + locale?: string; + t?: (key: string, params?: Record) => string; } } } \ No newline at end of file