Skip to content
7 changes: 5 additions & 2 deletions frontend/src/ts/test/test-input.ts
Comment thread
Leonabcd123 marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,10 @@ export const corrected = new Corrected();
export let keypressCountHistory: number[] = [];
let currentKeypressCount = 0;
export let currentBurstStart = 0;
export let missedWords: Record<string, number> = {};
type MissedWordsType = Record<string, number>;
export let missedWords: MissedWordsType = Object.create(
null,
) as MissedWordsType;
export let accuracy = {
correct: 0,
incorrect: 0,
Expand Down Expand Up @@ -542,7 +545,7 @@ export function restart(): void {
words: [],
};
currentBurstStart = 0;
missedWords = {};
missedWords = Object.create(null) as MissedWordsType;
accuracy = {
correct: 0,
incorrect: 0,
Expand Down