diff --git a/frontend/src/types.ts b/frontend/src/types.ts new file mode 100644 index 0000000..787701c --- /dev/null +++ b/frontend/src/types.ts @@ -0,0 +1,29 @@ +export type Player = { + id: number; + name: string; + guild: { + id: number; + name: string; + }; + associations: Association[]; + notes: Note[]; +}; + +export type Association = { + id: number; + name: string; + note: string; +}; + +export type Note = { + id: number; + content: string; + timestamp: string; + player: Player; +}; + +export type APIResponse = { + success: boolean; + message: string; + data: T; +} \ No newline at end of file