From 358572d9e76f4cd22bfcb09c092a1eaf3a31f005 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sat, 4 Nov 2023 10:40:06 +0100 Subject: infra(typescript-eslint): strict-type-checked (#2467) --- src/modules/word/filter-word-list-by-length.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/word') diff --git a/src/modules/word/filter-word-list-by-length.ts b/src/modules/word/filter-word-list-by-length.ts index 106e9858..60c6fae9 100644 --- a/src/modules/word/filter-word-list-by-length.ts +++ b/src/modules/word/filter-word-list-by-length.ts @@ -13,12 +13,12 @@ const STRATEGIES = { wordList: ReadonlyArray, length: { min: number; max: number } ): string[] => { - const wordsByLength = wordList.reduce( + const wordsByLength = wordList.reduce>( (data, word) => { (data[word.length] = data[word.length] ?? []).push(word); return data; }, - {} as Record + {} ); const lengths = Object.keys(wordsByLength).map(Number); -- cgit v1.2.3