mirror of
https://github.com/fabrice404/olympics-calendar.git
synced 2025-12-13 06:39:47 +00:00
45 lines
673 B
TypeScript
45 lines
673 B
TypeScript
|
|
export interface MultilingualString {
|
|
[key: string]: string;
|
|
}
|
|
|
|
export interface Language {
|
|
code: string;
|
|
name: string;
|
|
}
|
|
|
|
export interface Sport {
|
|
key: string;
|
|
name: MultilingualString;
|
|
order: number;
|
|
}
|
|
|
|
export interface Team {
|
|
key: string;
|
|
name: MultilingualString;
|
|
}
|
|
|
|
export interface Match {
|
|
team1: Team;
|
|
team2: Team;
|
|
}
|
|
|
|
export interface Event {
|
|
key: string;
|
|
start: string;
|
|
end: string;
|
|
sport: string;
|
|
isTraining: boolean;
|
|
medal: '0' | '1' | '3';
|
|
name: MultilingualString;
|
|
location: MultilingualString;
|
|
match?: Match;
|
|
}
|
|
|
|
export interface Calendar {
|
|
languages: Language[];
|
|
sports: Sport[];
|
|
events: Event[];
|
|
nocs: Team[];
|
|
}
|