incorrect type

This commit is contained in:
Miodec 2022-02-21 02:13:48 +01:00
parent 684e3cb456
commit bfb869ddc9
2 changed files with 5 additions and 5 deletions

View file

@ -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 {

View file

@ -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;