From bfb869ddc9ba782d040f21ce01327b2c567683a0 Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 21 Feb 2022 02:13:48 +0100 Subject: [PATCH] incorrect type --- frontend/src/scripts/test/test-input.ts | 6 +++--- frontend/src/scripts/test/test-stats.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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;