save
This commit is contained in:
12
src/types.ts
12
src/types.ts
@@ -136,14 +136,10 @@ export const DefaultArticle: Article = {
|
||||
}
|
||||
|
||||
export interface Statistics {
|
||||
startIndex: number,
|
||||
endIndex: number,
|
||||
startDate: number,//开始日期
|
||||
endDate: number//结束日期
|
||||
spend: number,//花费时间
|
||||
total: number//单词数量
|
||||
wrongWordNumber: number//错误数
|
||||
correctRate: number//正确率
|
||||
wrong: number//错误数
|
||||
}
|
||||
|
||||
export interface DisplayStatistics extends Statistics {
|
||||
@@ -152,14 +148,10 @@ export interface DisplayStatistics extends Statistics {
|
||||
}
|
||||
|
||||
export const DefaultDisplayStatistics: DisplayStatistics = {
|
||||
startIndex: -1,
|
||||
endIndex: -1,
|
||||
startDate: Date.now(),
|
||||
endDate: -1,
|
||||
spend: -1,
|
||||
total: -1,
|
||||
correctRate: -1,
|
||||
wrongWordNumber: -1,
|
||||
wrong: -1,
|
||||
inputWordNumber: -1,
|
||||
wrongWords: [],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user