book.ts 482 B

12345678910111213141516171819202122232425262728
  1. export type BookEntryKind = "lore" | "novel";
  2. export type BookEntry = {
  3. id: string;
  4. title: string;
  5. kind: BookEntryKind;
  6. order: number;
  7. content: string[];
  8. };
  9. export type BookSection = {
  10. id: string;
  11. title: string;
  12. kind: BookEntryKind;
  13. order: number;
  14. entries: BookEntry[];
  15. };
  16. export type Book = {
  17. id: string;
  18. title: string;
  19. author: string;
  20. category: string;
  21. description: string;
  22. wordCount: string;
  23. coverStyle: string;
  24. sections: BookSection[];
  25. };