Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
inker committed Jul 5, 2024
1 parent 68ac9fb commit 1cb2c1b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/engine/dfs/ls/generatePairings/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import { range, shuffle } from 'lodash';

import { type Country } from '#model/types';

import generateFull from './generateFull';
import getFirstSuitableMatch from './getFirstSuitableMatch.wrapper';

export default async function* generatePairings<T>({
interface Team {
country: Country;
}

export default async function* generatePairings<T extends Team>({
pots,
numMatchdays,
isMatchPossible,
Expand Down Expand Up @@ -35,7 +41,6 @@ export default async function* generatePairings<T>({
allGames = shuffle(allGames);
// eslint-disable-next-line no-await-in-loop
const pickedMatch = await getFirstSuitableMatch({
// @ts-expect-error Fix this later
teams,
numPots: pots.length,
numTeamsPerPot,
Expand Down

0 comments on commit 1cb2c1b

Please sign in to comment.