Lib: Type data passed to cards from the page context
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user