forked from gita/gita-frontend-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.d.ts
76 lines (65 loc) · 1.26 KB
/
types.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
interface TChapter {
id: number;
chapter_number: number;
chapter_summary: string;
name_translated: string;
verses_count: number;
}
interface ChaptersProps {
chapters: TChapter[];
}
interface NewsletterFormData {
name: string;
email: string;
}
interface GitaLanguage {
description: string;
}
interface GitaVerse {
verse_number: number;
chapter_number: number;
id: number;
text: string;
transliteration: string;
word_meanings: string;
}
interface Verse {
gita_verses_by_pk: GitaVerse;
gita_commentaries: GitaLanguage[];
gita_translations: GitaLanguage[];
}
interface GitaChapterData {
chapter_summary: string;
chapter_number: number;
name_translated: string;
verses_count: number;
}
interface GitaChapter {
gita_chapters_by_pk: GitaChapterData;
gita_verses: GitaVerse[];
}
interface AdvanceSettings {
devnagari: boolean;
verseText: boolean;
synonyms: boolean;
translation: boolean;
purport: boolean;
}
interface LanguageSettings {
language: {
id: number;
language: string;
};
translationAuthor: {
id: number;
name: string;
};
commentaryAuthor: {
id: number;
name: string;
};
}
type CurrentVerse = Omit<GitaVerse, "word_meanings" | "text">;
interface SvgProps {
className: string;
}