Files
english/src/types/index.ts
2026-04-12 18:54:59 +07:00

61 lines
917 B
TypeScript

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
}