Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
inker committed Jul 13, 2024
1 parent 4462a1a commit a018f82
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/engine/dfs/ls/generateSchedule/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import { keyBy, uniq } from 'lodash';

import getFirstSuitableMatchday from './getFirstSuitableMatchday.wrapper';

export default async function generateSchedule<T extends { id: string }>({
interface Team {
readonly id: string;
readonly name: string;
}

export default async function generateSchedule<T extends Team>({
matchdaySize,
allGames: allGamesWithIds,
signal,
Expand Down Expand Up @@ -33,7 +38,6 @@ export default async function generateSchedule<T extends { id: string }>({
// ]);

const result = await getFirstSuitableMatchday({
// @ts-expect-error Fix this later
teams: allTeams,
matchdaySize,
allGames: allGamesUnordered,
Expand Down

0 comments on commit a018f82

Please sign in to comment.