From c9e28e9b5b660d9058ff4b5737898206c46f8812 Mon Sep 17 00:00:00 2001 From: Peter KW Date: Thu, 21 Mar 2024 03:39:53 +0100 Subject: [PATCH] New type to match fetch --- frontend/src/Types/goTypes.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/frontend/src/Types/goTypes.ts b/frontend/src/Types/goTypes.ts index 6433b13..302e785 100644 --- a/frontend/src/Types/goTypes.ts +++ b/frontend/src/Types/goTypes.ts @@ -151,9 +151,16 @@ export interface NewProject { */ export interface RoleChange { username: string; - role: 'project_manager' | 'user'; + role: "project_manager" | "user"; projectname: string; } + +export interface NewProjMember { + username: string; + projectname: string; + role: "project_manager" | "user"; +} + export interface NameChange { id: number /* int */; name: string; @@ -186,8 +193,8 @@ export interface PublicUser { } export interface UserProjectMember { - Username: string; - UserRole: string; + Username: string; + UserRole: string; } /** * wrapper type for token