| 2 | import type { Word } from '@/typings' |
| 3 | |
| 4 | export 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 | |
| 19 | export interface LetterMistakes { |
| 20 | // 每个字母被错误输入成什么, index 为字母的索引, 数组内为错误的 e.key |
nothing calls this directly
no outgoing calls
no test coverage detected