Class Reference

A reference to a verse in the Bible.

Hierarchy

  • Reference

Implements

Constructors

Properties

Methods

Constructors

  • Create a new reference without validation.

    Parameters

    • book: string

      The book of the Bible.

    • chapter: null | number = null

      The chapter of the book if there is one referenced

    • verse: null | number = null

      The verse of the chapter if there is one referenced

    Returns Reference

Properties

book: string

The book of the Bible.

chapter: null | number = null

The chapter of the book if there is one referenced

verse: null | number = null

The verse of the chapter if there is one referenced

Methods

  • Convert the reference to a string.

    Returns string

  • Parse a reference from a string.

    Throws

    If the input cannot be parsed.

    Parameters

    • input: string

    Returns Reference

Generated using TypeDoc