phase 2
This commit is contained in:
60
src/types/index.ts
Normal file
60
src/types/index.ts
Normal file
@@ -0,0 +1,60 @@
|
||||
export interface Question {
|
||||
id: string
|
||||
part: number
|
||||
text: string
|
||||
options: string[]
|
||||
correctAnswer: number // 0-3
|
||||
explanation: string
|
||||
}
|
||||
|
||||
export interface VocabWord {
|
||||
id: string
|
||||
word: string
|
||||
phonetic: string
|
||||
meaningVi: string
|
||||
topic: VocabTopic
|
||||
example: string
|
||||
}
|
||||
|
||||
export type VocabTopic =
|
||||
| 'Tất cả'
|
||||
| 'Business'
|
||||
| 'Office'
|
||||
| 'Travel'
|
||||
| 'Finance'
|
||||
| 'HR'
|
||||
| 'Marketing'
|
||||
|
||||
export const VOCAB_TOPICS: VocabTopic[] = [
|
||||
'Tất cả',
|
||||
'Business',
|
||||
'Office',
|
||||
'Travel',
|
||||
'Finance',
|
||||
'HR',
|
||||
'Marketing',
|
||||
]
|
||||
|
||||
export interface WritingFeedback {
|
||||
score: string
|
||||
grammar: string[]
|
||||
vocabulary: string[]
|
||||
structure: string
|
||||
improvedVersion: string
|
||||
summary: string
|
||||
}
|
||||
|
||||
export interface ToeicPart {
|
||||
id: number
|
||||
name: string
|
||||
nameVi: string
|
||||
questionCount: number
|
||||
icon: string
|
||||
progressPercent: number
|
||||
}
|
||||
|
||||
export interface User {
|
||||
id: string
|
||||
email: string
|
||||
name: string
|
||||
}
|
||||
Reference in New Issue
Block a user