Lib: Type data passed to cards from the page context

This commit is contained in:
2025-02-05 20:14:05 +01:00
parent 8cb665cae8
commit 907e4fefb1
6 changed files with 26 additions and 11 deletions

View File

@ -3,6 +3,20 @@
// 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;