Skip to content

Commit

Permalink
chore: api 변경에 따른 타입 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seongminn committed Nov 22, 2023
1 parent 6ac8c11 commit c2ea7d7
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/types/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,26 @@ export type GameType = {
startTime: string;
firstTeamScore: number;
secondTeamScore: number;
gameStatus: GameStatusType;
gameStatus: GameQuarterType;
statusChangedAt: string;
firstTeam: GameTeamType;
secondTeam: GameTeamType;
};

export interface GameDetailType extends GameType {
records: GameRecordType[];
videoId: string;
export interface GameDetailType {
gameTeams: GameTeamType[];
startTime: string;
videoId: number;
gameQuarter: GameQuarterType;
gameName: string;
}

export type GameTeamType = {
id: number;
name: string;
export interface GameTeamType {
gameTeamId: number;
gameTeamName: string;
logoImageUrl: string;
};
score: number;
}

export type GameRecordType = {
id: number;
Expand All @@ -37,7 +41,7 @@ export type GameCommentType = {
isBlocked: boolean;
};

export type GameStatusType =
export type GameQuarterType =
| 'BEFORE'
| 'FIRST_HALF'
| 'BREAK_TIME'
Expand Down

0 comments on commit c2ea7d7

Please sign in to comment.