You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
323 B
19 lines
323 B
// express.d.ts
|
|
|
|
/*
|
|
eslint-disable @typescript-eslint/no-empty-object-type
|
|
*/
|
|
|
|
import { IUser } from '../src/app/models/user.js';
|
|
|
|
declare global { namespace Express {
|
|
|
|
/**
|
|
* Extend the ExpressJS User interface with IUser
|
|
*/
|
|
export interface User extends IUser { }
|
|
|
|
interface Request {
|
|
user?: User;
|
|
}
|
|
} }
|
|
|