Files
librodrome/app/types/book.ts
2026-02-20 12:55:10 +01:00

25 lines
458 B
TypeScript

export interface ChapterMeta {
slug: string
title: string
description?: string
order: number
readingTime?: string
}
export interface ChapterSongLink {
chapterSlug: string
songId: string
primary: boolean
}
export interface BookConfig {
title: string
author: string
description: string
coverImage?: string
chapters: ChapterMeta[]
songs: import('./song').Song[]
chapterSongs: ChapterSongLink[]
defaultPlaylistOrder: string[]
}