This commit is contained in:
zyronon
2023-08-23 19:32:23 +08:00
parent 0236463aeb
commit 6d4e1680ac
5 changed files with 26 additions and 24 deletions

View File

@@ -12,7 +12,12 @@ export type Config = {
chapterIndex: number,
wordIndex: number,
}
export type Word = {"name": string, "usphone": string, "ukphone": string, "trans": string[]}
export type Word = {
"name": string,
"usphone": string,
"ukphone": string,
"trans": string[]
}
export const SaveKey = 'bb-word-config'
@@ -101,6 +106,17 @@ export interface Dict extends DictJson {
wordIndex: number,
}
interface DictLog {
startDate: number,//开始日期
endDate: number//结束日期
chapterWordNumber: number//章节单词数量
chapterLog: {
startDate: number,//开始日期
endDate: number//结束日期
correctRate: number//正确率
}
}
export interface State {
newWordDict: {
type: DictType,