diff options
Diffstat (limited to 'backend/src/types/express.d.ts')
| -rw-r--r-- | backend/src/types/express.d.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/src/types/express.d.ts b/backend/src/types/express.d.ts index 7ac6ca0..266a9f9 100644 --- a/backend/src/types/express.d.ts +++ b/backend/src/types/express.d.ts @@ -1,7 +1,12 @@ import type { AuthorizedUser } from "./user.js"; +import { Server } from "socket.io"; declare global { namespace Express { + interface Application { + io: Server; + } + interface Request { user?: AuthorizedUser; } @@ -9,3 +14,4 @@ declare global { } export {}; + |
