Interface Book

This interface represents a book, including its optional title, description, authors, publisher, chapters, ISBN, language, and edition.

interface Book {
    title?: string;
    description?: string;
    authors?: (string | Linked<Author>)[];
    publisher?: string | Linked<Publisher>;
    chapters?: Linked<Chapter>[];
    isbn?: string;
    language?: string;
    edition?: number;
}

Properties

title?: string

The optional title of the book

description?: string

An optional description of the book

authors?: (string | Linked<Author>)[]

An optional array of linked authors or author names

publisher?: string | Linked<Publisher>

An optional linked publisher or publisher name

chapters?: Linked<Chapter>[]

An optional array of linked chapters, default children

isbn?: string

An optional ISBN of the book

language?: string

The optional language of the book

edition?: number

The optional edition number of the book