Restructuring the Project
Updating dependencies
This commit is contained in:
16
Backend/src/express.d.ts
vendored
Normal file
16
Backend/src/express.d.ts
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
import { IUser } from "./models/user";
|
||||
import { IClient } from "./models/client";
|
||||
import { ILoginToken } from "./models/login_token";
|
||||
|
||||
declare module "express" {
|
||||
interface Request {
|
||||
user: IUser;
|
||||
client: IClient;
|
||||
isAdmin: boolean;
|
||||
special: boolean;
|
||||
token: {
|
||||
login: ILoginToken;
|
||||
special?: ILoginToken;
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user