Skip to content

Commit

Permalink
⌨ update ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshix-1 committed Jan 31, 2025
1 parent e770394 commit 2479f88
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions an_website/emoji_chat/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const displayCurrentUser = (name: string[]) => {
};

const emojiToIMG = (emoji: string) => {
// eslint-disable-next-line @typescript-eslint/no-misused-spread
const chars = [...emoji];
const emojiCode = (
chars.length == 2 && chars[1] === "\uFE0F" ? [chars[0]!] : chars
Expand Down
2 changes: 2 additions & 0 deletions an_website/hangman_solver/hangman_solver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ function getRegex(state: State) {
}

async function loadWords(state: State): Promise<string[]> {
// eslint-disable-next-line @typescript-eslint/no-misused-spread
const wordLength = [...state.input].length;
try {
return await _loadWords(state.lang, wordLength);
Expand Down Expand Up @@ -177,6 +178,7 @@ function updateLettersMap(
}
return;
}
// eslint-disable-next-line @typescript-eslint/no-misused-spread
const used = [...inputWithoutWildCards];
for (const char of word) {
if (used.includes(char)) {
Expand Down
Loading

0 comments on commit 2479f88

Please sign in to comment.