code quality
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user