From 25ecb1cb75b7b5b584ad223e12d74c3e3ee7da89 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 12 Feb 2023 13:05:25 +0100 Subject: Add textual search on title, subtitle and authors --- src/book.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/book.ts (limited to 'src/book.ts') diff --git a/src/book.ts b/src/book.ts new file mode 100644 index 0000000..a5ddb75 --- /dev/null +++ b/src/book.ts @@ -0,0 +1,14 @@ +export interface Book { + title: string + subtitle: string + authors: Array + authorsSort: string + genres: Array + date: string + read: ReadStatus, + cover: string +} + +export type ReadStatus = 'Read' | 'Unread' | 'Reading' | 'Stopped' + +export const readStatuses: Array = ['Read', 'Unread', 'Reading', 'Stopped' ] -- cgit v1.2.3