(chapterAlias: string)
| 173 | } |
| 174 | |
| 175 | export function getTitleFromChapter(chapterAlias: string): string { |
| 176 | return chapters.find(c => c.alias === chapterAlias)!.title |
| 177 | } |
| 178 | |
| 179 | export function getTitleFromSubchapter(subchapterAlias: string): string { |
| 180 | return subchapters.find(c => c.alias === subchapterAlias)!.title |