From a018f82aa31a7827f2018cbfcb29c07bccb41742 Mon Sep 17 00:00:00 2001 From: Anton Veselev Date: Sat, 13 Jul 2024 20:08:04 +0100 Subject: [PATCH] fix types --- src/engine/dfs/ls/generateSchedule/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/engine/dfs/ls/generateSchedule/index.ts b/src/engine/dfs/ls/generateSchedule/index.ts index e91e4127..3b744220 100644 --- a/src/engine/dfs/ls/generateSchedule/index.ts +++ b/src/engine/dfs/ls/generateSchedule/index.ts @@ -2,7 +2,12 @@ import { keyBy, uniq } from 'lodash'; import getFirstSuitableMatchday from './getFirstSuitableMatchday.wrapper'; -export default async function generateSchedule({ +interface Team { + readonly id: string; + readonly name: string; +} + +export default async function generateSchedule({ matchdaySize, allGames: allGamesWithIds, signal, @@ -33,7 +38,6 @@ export default async function generateSchedule({ // ]); const result = await getFirstSuitableMatchday({ - // @ts-expect-error Fix this later teams: allTeams, matchdaySize, allGames: allGamesUnordered,