MCPcopy
hub / github.com/RealKai42/qwerty-learner / IWordRecord

Interface IWordRecord

src/utils/db/record.ts:4–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import type { Word } from '@/typings'
3
4export interface IWordRecord {
5 word: string
6 timeStamp: number
7 // 正常章节为 dictKey, 其他功能则为对应的类型
8 dict: string
9 // 用户可能是在 错题/其他类似组件中 进行的练习则为 null, start from 0
10 chapter: number | null
11 // 正确次数中输入每个字母的时间差,可以据此计算出总时间
12 timing: number[]
13 // 出错的次数
14 wrongCount: number
15 // 每个字母被错误输入成什么, index 为字母的索引, 数组内为错误的 e.key
16 mistakes: LetterMistakes
17}
18
19export interface LetterMistakes {
20 // 每个字母被错误输入成什么, index 为字母的索引, 数组内为错误的 e.key

Callers

nothing calls this directly

Implementers 1

WordRecordsrc/utils/db/record.ts

Calls

no outgoing calls

Tested by

no test coverage detected