From 3818739c5901cc3f1d4596b24cfe1b827a2eca23 Mon Sep 17 00:00:00 2001 From: Arne Rief Date: Mon, 22 Dec 2025 12:28:33 +0100 Subject: FE Sidebar, create & move requests, BE create controller --- backend/src/types/express.d.ts | 6 ++++++ backend/src/types/request.ts | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'backend/src/types') 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 {}; + diff --git a/backend/src/types/request.ts b/backend/src/types/request.ts index ef80738..6524b16 100644 --- a/backend/src/types/request.ts +++ b/backend/src/types/request.ts @@ -1,4 +1,9 @@ +export type CreateRequest = { + name: string; +}; + export type LoginRequest = { email: string; password: string; }; + -- cgit v1.2.3