Fix TypeScript compilation errors with Express Request extensions

- 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 <noreply@anthropic.com>
This commit is contained in:
Claude Code 2025-07-07 21:37:12 -04:00
parent 0f364804bc
commit b41bbd5ff6
2 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,6 @@
/// <reference path="./types/index.d.ts" />
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';

View file

@ -75,6 +75,8 @@ declare global {
id: string;
role: string;
};
locale?: string;
t?: (key: string, params?: Record<string, string>) => string;
}
}
}