diff --git a/frontend/src/scripts/test/test-input.ts b/frontend/src/scripts/test/test-input.ts index ab3f4c240..4767b9f34 100644 --- a/frontend/src/scripts/test/test-input.ts +++ b/frontend/src/scripts/test/test-input.ts @@ -3,7 +3,7 @@ import * as TestWords from "./test-words"; type Keypress = { count: number; errors: number; - words: string[]; + words: number[]; afk: boolean; }; @@ -185,8 +185,8 @@ export function incrementKeypressErrors(): void { currentKeypress.errors++; } -export function pushKeypressWord(word: string): void { - currentKeypress.words.push(word); +export function pushKeypressWord(wordIndex: number): void { + currentKeypress.words.push(wordIndex); } export function setBurstStart(time: number): void { diff --git a/frontend/src/scripts/test/test-stats.ts b/frontend/src/scripts/test/test-stats.ts index 92d4f689e..d0a494d1c 100644 --- a/frontend/src/scripts/test/test-stats.ts +++ b/frontend/src/scripts/test/test-stats.ts @@ -16,7 +16,7 @@ type CharCount = { type Keypress = { count: number; errors: number; - words: string[]; + words: number[]; afk: boolean; }; @@ -41,7 +41,7 @@ type DebugStats = { currentKeypress: { count: number; errors: number; - words: string[]; + words: number[]; afk: boolean; }; lastKeypress: number;