initial
This commit is contained in:
34
books/types.ts
Normal file
34
books/types.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
export enum AppScreen {
|
||||
LIBRARY = 'LIBRARY',
|
||||
CATEGORIES = 'CATEGORIES',
|
||||
WISHLIST = 'WISHLIST',
|
||||
SETTINGS = 'SETTINGS',
|
||||
DETAILS = 'DETAILS',
|
||||
ADD_BOOK = 'ADD_BOOK',
|
||||
SCANNER = 'SCANNER',
|
||||
}
|
||||
|
||||
export interface Book {
|
||||
id: string;
|
||||
title: string;
|
||||
author: string;
|
||||
genre: string;
|
||||
annotation: string;
|
||||
coverUrl?: string;
|
||||
pages?: number;
|
||||
language?: string;
|
||||
publishedYear?: number;
|
||||
rating?: number;
|
||||
status: 'reading' | 'done' | 'want_to_read';
|
||||
progress?: number;
|
||||
isFavorite?: boolean;
|
||||
}
|
||||
|
||||
export interface Category {
|
||||
id: string;
|
||||
name: string;
|
||||
count: number;
|
||||
icon: string;
|
||||
colorClass: string;
|
||||
}
|
||||
Reference in New Issue
Block a user