Skip to content

Commit cf34aed

Browse files
committed
fix implicit any types in test fixtures to satisfy noImplicitAny
1 parent 12572a4 commit cf34aed

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/test-helpers/fixtures.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function buildMatch(overrides: Partial<any> = {}) {
88
organizer_steam_id: "76561198000000001",
99
type: "Competitive",
1010
region: "eu-west",
11-
cancels_at: null,
11+
cancels_at: null as string | null,
1212
...overrides,
1313
};
1414
}
@@ -30,7 +30,7 @@ export function buildLineup(overrides: Partial<any> = {}) {
3030
match_id: uuid(),
3131
name: "Team A",
3232
is_ready: false,
33-
lineup_players: [],
33+
lineup_players: [] as any[],
3434
...overrides,
3535
};
3636
}
@@ -64,11 +64,11 @@ export function buildTournamentBracket(overrides: Partial<any> = {}) {
6464
match_number: 1,
6565
finished: false,
6666
bye: false,
67-
tournament_team_id_1: null,
68-
tournament_team_id_2: null,
69-
match_id: null,
70-
parent_bracket_id: null,
71-
loser_parent_bracket_id: null,
67+
tournament_team_id_1: null as string | null,
68+
tournament_team_id_2: null as string | null,
69+
match_id: null as string | null,
70+
parent_bracket_id: null as string | null,
71+
loser_parent_bracket_id: null as string | null,
7272
...overrides,
7373
};
7474
}

0 commit comments

Comments
 (0)