Created the index.d.ts override
This commit is contained in:
11
src/types/overrides/index.d.ts
vendored
Normal file
11
src/types/overrides/index.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import { IAccount } from "@models/Account";
|
||||||
|
import { ISession } from "@models/Session";
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
namespace Express {
|
||||||
|
interface Request {
|
||||||
|
session?: ISession,
|
||||||
|
user?: IAccount
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user