Appearance
@sylis/web / hooks/useVocabularyPractice / UseVocabularyPracticeReturn
Interface: UseVocabularyPracticeReturn
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:24
Properties
currentVoice
currentVoice:
"uk"
|"us"
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:31
currentWord
currentWord:
null
|DailyPlanWord
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:27
dailyPlan
dailyPlan:
null
|GetDailyPlanResponse
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:26
error
error:
null
|string
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:33
handleBackToWords()
handleBackToWords: () =>
void
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:55
Returns
void
handleKnowWord()
handleKnowWord: (
known
) =>Promise
<void
>
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:50
Parameters
known
boolean
Returns
Promise
<void
>
handleMarkAsFamiliar()
handleMarkAsFamiliar: () =>
Promise
<void
>
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:49
Returns
Promise
<void
>
handleNextWord()
handleNextWord: () =>
void
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:47
Returns
void
handleNextWordFromDetail()
handleNextWordFromDetail: () =>
Promise
<void
>
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:51
Returns
Promise
<void
>
handlePreviousWord()
handlePreviousWord: () =>
void
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:46
Returns
void
handleToggleFavorite()
handleToggleFavorite: () =>
void
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:48
Returns
void
handleToggleHint()
handleToggleHint: () =>
void
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:52
Returns
void
handleVoiceToggle()
handleVoiceToggle: () =>
void
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:53
Returns
void
hasNextWord
hasNextWord:
boolean
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:59
hasPreviousWord
hasPreviousWord:
boolean
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:58
isFavorited
isFavorited:
boolean
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:29
learningStage
learningStage:
LearningStage
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:28
loading
loading:
boolean
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:32
playWordPronunciation()
playWordPronunciation: (
voice?
) =>void
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:54
Parameters
voice?
"uk"
| "us"
Returns
void
progress
progress:
object
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:36
completed
completed:
number
newWordsCompleted
newWordsCompleted:
number
plannedNewCount
plannedNewCount:
number
plannedReviewCount
plannedReviewCount:
number
reviewWordsCompleted
reviewWordsCompleted:
number
total
total:
number
showHint
showHint:
boolean
Defined in: apps/web/src/hooks/useVocabularyPractice.ts:30