New type to match fetch

This commit is contained in:
Peter KW 2024-03-21 03:39:53 +01:00
parent b2db9c54ca
commit c9e28e9b5b

View file

@ -151,9 +151,16 @@ export interface NewProject {
*/ */
export interface RoleChange { export interface RoleChange {
username: string; username: string;
role: 'project_manager' | 'user'; role: "project_manager" | "user";
projectname: string; projectname: string;
} }
export interface NewProjMember {
username: string;
projectname: string;
role: "project_manager" | "user";
}
export interface NameChange { export interface NameChange {
id: number /* int */; id: number /* int */;
name: string; name: string;
@ -186,8 +193,8 @@ export interface PublicUser {
} }
export interface UserProjectMember { export interface UserProjectMember {
Username: string; Username: string;
UserRole: string; UserRole: string;
} }
/** /**
* wrapper type for token * wrapper type for token