Skip to content

Commit 751fb6a

Browse files
authored
fix: update type definitions for session play duration, league loc status (#183)
* fix: update type definitions for session play duration, league location, and team invitation status * fix: update duration type to non-nullable in session play and session detail interfaces
1 parent d0df46c commit 751fb6a

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/actions/league-context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ export async function getLeagueScheduleData(leagueId: string): Promise<{
8383
type: "GAME" | "PRACTICE";
8484
title: string;
8585
startAt: string;
86-
location: string | null;
86+
location: string;
8787
opponent: string | null;
88-
team: { id: string; name: string } | null;
88+
team: { id: string; name: string };
8989
homeTeam: { id: string; name: string } | null;
9090
awayTeam: { id: string; name: string } | null;
9191
}>;

lib/actions/practice-session-queries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export async function getPracticeSessionDetail(sessionId: string): Promise<{
8787
plays: Array<{
8888
id: string;
8989
sequence: number;
90-
duration: number | null;
90+
duration: number;
9191
instructions: string | null;
9292
play: {
9393
id: string;

lib/actions/team-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export async function getRosterData(): Promise<{
180180
invitations: Array<{
181181
id: string;
182182
email: string;
183-
status: string;
183+
status: "PENDING" | "ACCEPTED" | "EXPIRED";
184184
expiresAt: string;
185185
createdAt: string;
186186
}>;

0 commit comments

Comments
 (0)