Skip to content

Commit c735918

Browse files
committed
refactor(guess-the-word): infer return type of addDiscoveredWord()
1 parent 0a6db53 commit c735918

File tree

1 file changed

+1
-2
lines changed
  • vanilla/guess-the-word/src/services/saved-words

1 file changed

+1
-2
lines changed

vanilla/guess-the-word/src/services/saved-words/add.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import { DIFFICULTIES_ALL } from "@/consts/difficulty";
44
import { DISCOVERED_WORDS } from "@/consts/discovered-words";
55

66
/** @param {string} word
7-
* @param {{ difficulty: import("@/consts/difficulty").Difficulty }} config
8-
* @returns {{ completed: boolean }} */
7+
* @param {{ difficulty: import("@/consts/difficulty").Difficulty }} config */
98
export const addDiscoveredWord = (word, { difficulty }) => {
109
const availableDifficulties = getDifficultiesOfWord(word);
1110

0 commit comments

Comments
 (0)