aboutsummaryrefslogtreecommitdiff
path: root/library/client/book.ts
blob: 680cc11f8af402add77562cb6445c083827cd7ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export interface Book {
  title: string
  subtitle?: string
  authors: Array<string>
  authorsSort: string
  genres: Array<string>
  date: number
  summary?: string
  read: ReadStatus,
  cover: string
}

export type ReadStatus = 'Read' | 'Unread' | 'Reading' | 'Stopped'

export const readStatuses: Array<ReadStatus> = ['Read', 'Unread', 'Reading', 'Stopped' ]