forked from Edon-100/vocabularies-book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
type.d.ts
54 lines (46 loc) · 946 Bytes
/
type.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// declare global {
// interface Window { MyNamespace: any; }
// }
interface Learn {
level?: number
done?: boolean
learnDate: Date
}
interface WebItem {
value: string[]
key: string
}
interface YoudaoBasic {
exam_type: '初中' | '高中' | 'CET4' | 'CET6' | '考研' | 'SAT'
['uk-phonetic']: string
['us-phonetic']: string
['uk-speech']: string
explains?: string[]
['us-speech']: string
isWord: boolean
speakUrl: string
phonetic: string
}
interface Youdao {
isWord:boolean; // 是否是一个单词
explains:string[]; // 中文解析翻译
phonetic:string; // 音标
}
interface Word {
text: string
isWord:boolean; // 是否是一个单词
explains:string[]; // 中文解析翻译
phonetic:string; // 音标
ctime: string
learn: Learn
}
type MyDbDoc = {
_id: string
_rev?: string
list: Word[]
}
interface AllTypeList {
allWords: Word[]
needLearnWords: Word[]
doneList: Word[]
}