book-min/types/book.d.ts

17 lines
334 B
TypeScript
Raw Permalink Normal View History

2024-12-18 16:15:08 +08:00
interface Book {
id: string;
title: string;
author: string;
cover: string;
isbn: string;
totalPages: number;
currentPage: number;
status: 'reading' | 'finished' | 'planning';
startDate?: Date;
finishDate?: Date;
category: string[];
notes: string[];
rating?: number;
createTime: Date;
updateTime: Date;
}