Class Book

A religious text in the Bible, typically named after its author.

Constructors

  • Parameters

    • Optional name: string
    • Optional chapterCount: number

    Returns Book

Properties

chapterCount: number
chapters: Map<number, Chapter>
metadata: object
name: string
next: Book
otherNames: Map<string, string>
prev: Book
version?: Version

Methods

  • Add an alternative name to the book

    Parameters

    • language: string

      ISO-639 code of name in another language

    • name: string

      Alternative name

    Returns void

  • Automatically generate chapter stubs given the number of chapters, assumes no chapters are skipped.

    Parameters

    • chapters: number

      Number of chapters

    Returns void