Lib: Remove SkeletonData schema and use correct PageData types instead

This commit is contained in:
2025-02-17 23:31:57 +01:00
parent 4a1fcc6447
commit 5f73f0f952
7 changed files with 20 additions and 41 deletions

View File

@ -3,20 +3,6 @@
// Application Data
/**
* The data returned from the root layout's [load]-function.
*/
export interface SkeletonData {
user: User;
admin: boolean;
graphics: Promise<Graphic[]>;
teams: Promise<Team[]>;
drivers: Promise<Driver[]>;
races: Promise<Race[]>;
substitutions: Promise<Substitution[]>;
}
export interface Graphic {
name: string;
file: string;
@ -27,7 +13,7 @@ export interface User {
id: string;
username: string;
firstname: string;
avatar: string;
avatar?: string;
avatar_url?: string;
admin: boolean;
}