summaryrefslogtreecommitdiff
path: root/backend/src/types/express.d.ts
blob: 266a9f9843e0ba1ce49b0877bfcd013c1623e98b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import type { AuthorizedUser } from "./user.js";
import { Server } from "socket.io";

declare global {
    namespace Express {
        interface Application {
            io: Server;
        }
        
        interface Request {
            user?: AuthorizedUser;
        }
    }
}

export {};