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:
parent
0f364804bc
commit
b41bbd5ff6
2 changed files with 3 additions and 1 deletions
|
@ -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';
|
||||
|
|
|
@ -75,6 +75,8 @@ declare global {
|
|||
id: string;
|
||||
role: string;
|
||||
};
|
||||
locale?: string;
|
||||
t?: (key: string, params?: Record<string, string>) => string;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue