mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 12:29:46 +08:00
incorrect type
This commit is contained in:
parent
684e3cb456
commit
bfb869ddc9
2 changed files with 5 additions and 5 deletions
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue