Skip to content

Commit

Permalink
Updated types
Browse files Browse the repository at this point in the history
  • Loading branch information
lille-morille committed Apr 15, 2024
1 parent a5af8d5 commit eccc239
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/types/tournament.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,12 @@ export interface PongTournament {
id?: number;
name?: string;
matches?: PongMatch[];
}
status: TournamentStatus;
pin_code?: string;
creator: User;
access: TournamentAccess;
}

export type TournamentStatus = "PENDING" | "ACTIVE" | "FINISHED"

export type TournamentAccess = "PUBLIC" | "PIN";

0 comments on commit eccc239

Please sign in to comment.