mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-25 17:39:07 +08:00
impr(type): more accurate type on a function parameter
!nuf
This commit is contained in:
parent
323185d558
commit
ee340f4e22
1 changed files with 2 additions and 2 deletions
|
|
@ -693,7 +693,7 @@ export async function getNextWord(
|
|||
wordIndex: number,
|
||||
wordsBound: number,
|
||||
previousWord: string,
|
||||
previousWord2: string
|
||||
previousWord2: string | undefined
|
||||
): Promise<GetNextWordReturn> {
|
||||
console.debug("Getting next word", {
|
||||
isRepeated: TestState.isRepeated,
|
||||
|
|
@ -750,7 +750,7 @@ export async function getNextWord(
|
|||
let randomWord = currentWordset.randomWord(funboxFrequency);
|
||||
const previousWordRaw = previousWord.replace(/[.?!":\-,]/g, "").toLowerCase();
|
||||
const previousWord2Raw = previousWord2
|
||||
.replace(/[.?!":\-,']/g, "")
|
||||
?.replace(/[.?!":\-,']/g, "")
|
||||
.toLowerCase();
|
||||
|
||||
if (currentSection.length === 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue