From 06f045e90bb57c36738e58ee6830e2a2391bc6a3 Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 16 Sep 2023 18:28:16 +0200 Subject: Migrate CLI to python --- src/view/client/book.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/view/client/book.ts (limited to 'src/view/client/book.ts') diff --git a/src/view/client/book.ts b/src/view/client/book.ts new file mode 100644 index 0000000..680cc11 --- /dev/null +++ b/src/view/client/book.ts @@ -0,0 +1,15 @@ +export interface Book { + title: string + subtitle?: string + authors: Array + authorsSort: string + genres: Array + date: number + summary?: string + read: ReadStatus, + cover: string +} + +export type ReadStatus = 'Read' | 'Unread' | 'Reading' | 'Stopped' + +export const readStatuses: Array = ['Read', 'Unread', 'Reading', 'Stopped' ] -- cgit v1.2.3