fix code style, use names from api instead of hardcoding for flatmates users

This commit is contained in:
2025-08-28 21:47:44 +02:00
parent c924ab893e
commit c7b03a93f0
16 changed files with 157 additions and 154 deletions

View File

@@ -1,3 +1,13 @@
interface Flatastic {
users: Array<FlatasticUser>;
chores: Array<FlatasticChore>;
}
interface FlatasticUser {
id: number;
firstName: string;
}
interface FlatasticChore {
id: number;
title: string;
@@ -10,4 +20,4 @@ interface FlatasticChore {
timeLeftNext: number;
}
export type { FlatasticChore };
export type { Flatastic, FlatasticChore, FlatasticUser };