code quality

This commit is contained in:
2026-01-26 17:47:37 +01:00
parent 9ac74f5046
commit 3a4f460a7d
21 changed files with 121 additions and 58 deletions

View File

@@ -29,7 +29,7 @@ export interface LeaguesViewData extends ViewData {
scoring: {
gameId: string;
gameName: string;
primaryChampionshipType: string;
primaryChampionshipType: 'driver' | 'team' | 'nations' | 'trophy';
scoringPresetId: string;
scoringPresetName: string;
dropPolicySummary: string;

View File

@@ -55,13 +55,13 @@ export interface ProfileViewData extends ViewData {
icon: 'trophy' | 'medal' | 'star' | 'crown' | 'target' | 'zap';
rarityLabel: string;
}>;
friends: Array<{
friends?: Array<{
id: string;
name: string;
countryFlag: string;
avatarUrl: string;
href: string;
}>;
friendsCountLabel: string;
friendsCountLabel?: string;
} | null;
}

View File

@@ -24,7 +24,11 @@ export interface TeamDetailData {
region?: string;
languages?: string[] | null;
category?: string;
membership?: string | null;
membership?: {
role: string;
joinedAt: string;
isActive: boolean;
} | null;
canManage: boolean;
}

View File

@@ -4,15 +4,15 @@ export interface TeamSummaryViewData {
tag: string;
memberCount: number;
description?: string;
totalWins: number;
totalRaces: number;
performanceLevel: 'beginner' | 'intermediate' | 'advanced' | 'pro';
totalWins?: number;
totalRaces?: number;
performanceLevel?: string;
isRecruiting: boolean;
specialization: 'endurance' | 'sprint' | 'mixed' | undefined;
region: string | undefined;
languages: string[];
leagues: string[];
logoUrl: string | undefined;
rating: number | undefined;
category: string | undefined;
specialization?: string;
region?: string;
languages?: string[];
leagues?: string[];
logoUrl?: string;
rating?: number;
category?: string;
}