-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtype.ts
106 lines (96 loc) · 1.8 KB
/
type.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
type $fixme = any;
export interface Source {
_id: string;
name: string;
book: string;
editor: string;
datePublished: string;
timeCreated: string;
timeUpdated: string;
id_depr: number;
abbreviation: string;
date: string;
}
export interface History {
_id: string;
id_depr: number;
language: $fixme;
excerpt: string;
definition: string;
source: Source;
date: string;
dateSortable: number;
quote: string;
timeCreated: string;
timeUpdated: string;
}
export interface Language {
_id: string;
name: string;
description: string;
description2: string;
timeCreated: string;
timeUpdated: string;
abbreviation: string;
id_depr: number;
}
export interface Etymology {
_id: string;
id_depr: number;
paranthesis: string;
relation: Relation;
languages: Language[];
originalText: string;
romanizedText: string;
definition: string;
neologism: string;
wordClass: WordClass;
timeCreated: string;
timeUpdated: string;
affixes: Affixes;
grammar: any;
}
export interface Relation {
_id: string;
name: string;
abbreviation: string;
text: string;
}
export interface WordClass {
_id: string;
name: string;
description: string;
abbreviation: string;
}
export interface Language2 {
_id: string;
}
export interface Affixes {
suffix?: Suffix;
}
export interface Suffix {
_id: string;
name: string;
description: string;
language: Language2;
timeCreated: string;
timeUpdated: string;
id_depr: number;
}
export interface Word {
_id: string;
histories: History[];
id_depr: number;
name: string;
note: string;
queries: string[];
similarWords: string[];
timeCreated: string;
timeUpdated: string;
actualTimeUpdated: string;
etymologies: Etymology[];
}
export interface Response {
isUnsuccessful: boolean;
words: Word[];
}